1) You NEVER make changes using ifconfig in OS X. It will result
in the system not knowing of the changes, them not surviving a
reboot and the next time there is a network event on your system
the settings reverting to what is properly configure.
okay, what' is the problem if in the Preferences Pane and the
script is the same IP's? i have read on many sites that is possible
to configure different route on startup and is preferable to add
the configuration of ifconfig
2) You NEVER do anything with rc.local or ANY of the rc files. You
either use launchd or StartupItems. However in this case you don't
use either of those either.
Mac OS X support launchd, Mach Bootstrap and Startup Items, but
always scripts with rc.local
look at the end of /etc/rc
if [ -f /etc/rc.local ]; then
sh /etc/rc.local
fi
i prefer use of launchd, fully supported on 10.4, but the simplest
form is rc.local
can u explain me what because is not good to deal with rc.local
I would use SystemStarter for this actually since it has dependencies.
rc.local is Apple maintained and could get wiped by an update. Stuff
in /L/LD or /L/SI is not.
Josh
--
Josh Wisenbaker, ACSA
http://www.afp548.com
Changing the world one server at a time.