how can i use the script rc.custom?
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
# Start stop Asterisk from daemon 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
yes ...
but why don'tu try it?
i do not want to mess with boot process and make my fritz unbootable
no prob ..
i use a similar script in rc.customs ... and it works just fine ...
Code:
# / Bin / sh
i = 1
if [-e / var/media/ftp/uStor02/swapfile_33mb]
then
/ Var/media/ftp/uStor02/user.sh
/ Etc / init.d / start rc.swap
/ Var/media/ftp/uStor02/apache-1.3.37/apache-f / var/media/ftp/uStor02/apache-1.3.37/conf/APACHE.CONF
# / Var/media/ftp/uStor01/stati/gkrellmd-d
Var/media/ftp/uStor01/webtransmission # cd /;. / Install.sh> / dev / null 2> & 1
exit 1
else
echo 7.3> / var / led
while [$ i-le 2000]
do
if [-e / var/media/ftp/uStor02/swapfile_33mb]
then
echo 7.1> / var / led
/ Var/media/ftp/uStor02/user.sh
/ Etc / init.d / start rc.swap
/ Var/media/ftp/uStor02/apache-1.3.37/apache-f / var/media/ftp/uStor02/apache-1.3.37/conf/APACHE.CONF
# / Var/media/ftp/uStor01/stati/gkrellmd-d
Var/media/ftp/uStor01/webtransmission # cd /;. / Install.sh> / dev / null 2> & 1
break
fi
i = `expr $ i + 1`
done
exit 1
fi
exit 0
Like it is shown
here (under "order at boot" ")
Boot Order: Code:
-> Rc.S
| -> Rc. Dsl (| net | viop | phone |...}
| -> Debug.cfg
'-> Rc.mod
| -> Rc. Bftpd (| |...} dropbear (packages)
'-> Rc.custom So you see, the defug.cfg will run before the actual mod and the rc.custon afterwards.