how can i use the rc.custom script?
is it the same as the debug.cfg?
currently i have this in the debug.cfg, if i put the content in rc.custom and remove from debug, will it have same effect?
is it the same as the debug.cfg?
currently i have this in the debug.cfg, if i put the content in rc.custom and remove from debug, will it have same effect?
Code:
max=5
i=0
USBDEVICE1='uStor01'
usbroot=/var/media/ftp/$USBDEVICE1
while [ $i -lt $max ]; do
if mount | grep " on /var/media/ftp/" > /dev/null; then
break
fi
let i=$i+1
sleep 15
done
# Asterisk start stop from Daemons interface
if [ -f /var/media/ftp/$USBDEVICE1/addons/rc.asterisk ]
then
ln -s $usbroot/addons/rc.asterisk /var/mod/etc/init.d
echo "asterisk" >> /etc/static.pkg
INST_DIR=$usbroot $usbroot/addons/cfg_asterisk14 usb_install
$usbroot/addons/cfg_asterisk14 start
fi