source config file; cleanup leecher data folder
[utp-swift.git] / local_start_utp_receiver
index 3570efa..407f429 100755 (executable)
@@ -1,11 +1,17 @@
 #!/bin/bash
 
+# load config
+source ./config
+
 cleanup()
 {
        kill -TERM $client_pid > /dev/null 2>&1
        kill -TERM $hook_pid > /dev/null 2>&1
 }
 
+# remove receiver data, if any
+rm -fr $LEECHER_DIR/*
+
 > $UTP_RECEIVER_OUT_LOG
 > $UTP_RECEIVER_LOG_FILE
 > $UTP_RECEIVER_MONITOR_LOG