hey, i'm using 1.920 and i need to add some routes to a network at boot time. i have a script that does this and i put it in /etc/rc.d/rc2.d/S85addroutes (which is a sym link to ../addroutes). the script executes (i have an echo comment that scrolls by at boot time so i know the script executes). but the routes are not added. if i manually run the script after it boots up, all is well and the routes get added? any ideas to what's wrong? is there a better way to do this? the script does this - /sbin/route add -net 192.168.xxx.xxx netmask 255.255.255.0 gw 192.168.xxx.xxx . thanks! bob.
then put your 'ip' call in both of these scripts .. this should make absolutely sure that the middleware will not remove your routes. maybe redirect the 'ip' output (STOUT and ERR) to /dev/null.
this is the most secure way of adding networking stuff to ASL. you can the remove the boot script.
EDITED UPDATE: you can also enter standard host and network routes in the WebAdmin, btw ... replace 'ip' with 'route' in the above if you still need it.
then put your 'ip' call in both of these scripts .. this should make absolutely sure that the middleware will not remove your routes. maybe redirect the 'ip' output (STOUT and ERR) to /dev/null.
this is the most secure way of adding networking stuff to ASL. you can the remove the boot script.
EDITED UPDATE: you can also enter standard host and network routes in the WebAdmin, btw ... replace 'ip' with 'route' in the above if you still need it.