Change IP Address & Restart
Change IP Address & Restart
- Subject: Change IP Address & Restart
- From: "Charles McLaughlin" <email@hidden>
- Date: Fri, 18 Jan 2002 21:01:19 -0800
Hello,
I am writing a script for use with Apple Software Restore to automate the
process of refreshing computer lab machines. My two questions pertain to
setting the IP address and computer name and scripting a restart/shut down.
I would like to change the IP address and computer name of a system while
booted off a different startup disk. For instance, I will boot off "Hard
Drive 1" and want to change the IP address and computer name of the system
on "Hard Drive 2". I am guessing that the IP address and computer name are
stored in preference files. Is it possible to edit these files with a
script?
Also, I was wondering if a script in the "Shutdown Items" folder can detect
whether a user attempted to shutdown or restart the computer? I've noticed
that shutdown scripts with tell statements cause to the system to not
restart/shutdown. I would like to construct a condition to work around
this. For instance, if the user attempted to restart, then the script would
do some stuff and restart. Or... if the user attempted to shutdown, then
the script would do some stuff and shutdown.
(Quicksilver G4's running OS 9.2)
Thanks,
Charles