im having problem with post-mount script. every reboot, it can run some lines but others lines are missing.
but missing lines:
Code:
#!/bin/sh
if [ $1 = "/tmp/mnt/TOSHIBA" ]
then
ln -nsf $1/entware /tmp/opt
fi
ln -s /tmp/mnt/TOSHIBA/entware/lib/python2.7/site-packages/pytz/zoneinfo/Asia/Manila /etc/localtime
sleep 5
service restart_dnsmasq
sleep 5
/opt/etc/init.d/S81aria2 start
/opt/etc/init.d/S75nzbget start
sleep 10
/opt/etc/init.d/S98headphones start
sleep 10
/opt/etc/init.d/S96sickbeard start
sleep 10
/opt/etc/init.d/S95nzbhydra start
sleep 10
swapon /opt/swap
sleep 12
wget -qO- "http://winhelp2002.mvps.org/hosts.txt" "http://someonewhocares.org/hosts/zero/hosts" "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext&useip=0.0.0.0" | grep -w ^0.0.0.0 | sed $'s/\r$//' | sort -u > /tmp/mnt/TOSHIBA/Download/settings/DNS/hosts.clean
sleep 5
service restart_dnsmasq
but missing lines:
Code:
/opt/etc/init.d/S98headphones start
/opt/etc/init.d/S96sickbeard start
/opt/etc/init.d/S95nzbhydra start