ControlScripts: add hrktorrent start script
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Fri, 30 Jul 2010 09:57:03 +0000 (12:57 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Fri, 30 Jul 2010 09:57:03 +0000 (12:57 +0300)
ControlScripts/start_hrk.sh [new file with mode: 0755]

diff --git a/ControlScripts/start_hrk.sh b/ControlScripts/start_hrk.sh
new file mode 100755 (executable)
index 0000000..99be633
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# 2010 Razvan Deaconescu, razvan.deaconescu@cs.pub.ro
+#
+# Bash script used to start a hrktorrent instance
+# The script
+#  * changes current working directory to hrktorrent working directory
+#  * starts a hrktorrent session - use LD_LIBRARY_PATH to point to
+#    libtorrent-rasterbar location
+
+# Read the global configuration variables
+source ../ConfigFiles/globalconfig.txt
+
+cd $HRK_ABS_PATH
+
+LD_LIBRARY_PATH=../libtorrent-rasterbar/lib ./hrktorrent