Report Autostart on boot btsync for arm in NAS using ffp in Sync General Discussion 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
Autostart on boot btsync for arm in NAS using ffp
in Sync General Discussion
Posted