bigsuraz Posted August 19, 2013 Report Share Posted August 19, 2013 ##FFP Start btsync on nas# paste this in /ffp/start/btsync.sh# $ cat btsync.sh#!/ffp/bin/sh#copy btsync to /mnt/pools/A/A0/btsync mordify it if needed# PROVIDE: Transmission. /ffp/etc/ffp.subrBT_HOME=/mnt/pools/A/A0/btsyncname="btsync"command="/mnt/pools/A/A0/btsync/$name"start_cmd="bt_start"stop_cmd="bt_stop"status_cmd="bt_status"user=rootsu_cmd="/ffp/bin/su"bt_start(){if [ ! -d ${BT_HOME} ]; then$su_cmd $user -c "mkdir ${BT_HOME}"fiecho "Starting $name"$su_cmd $user -c "$command"}bt_stop(){echo "Stopping $name"/ffp/bin/killall -SIGINT $name}bt_status(){_pids=$(pidof $name)if test -n "$_pids"; thenecho "$name is running, pid:"pidof $nameelseecho "$name not running"fi}run_rc_command "$1"#save this file as btsync.sh#chmod it# $ chmod a+x /ffp/start/btsync.sh Quote Link to comment Share on other sites More sharing options...
Kant1 Posted September 10, 2013 Report Share Posted September 10, 2013 Thank you a lot !!! I will try this tonight on my D-Link DNS 320 !!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.