SysProfile
This is a script I wrote to handle all moving from my home network to my
work network. It will start/stop services, reconfig a wireless network,
and mount filesystems/shares.
Download!
Usage:
SysProfile [start | stop | suspend ] < config name> < wireless>
< debug>
Where start and stop are obvious, suspend stops the profile and runs
apm -s. Debug will tell you what it is doing. Wireless will load the
802.11 card.
Setup:
config1 is the name of your config (aka home / work / joesnet)
mkdir /etc/SysProfile
mkdir /etc/SysProfile/config1
mkdir /etc/SysProfile/config1/start
mkdir /etc/SysProfile/config1/stop
Symlink the /etc/rc.d scripts you want started and stopped into the
start and stop directories.
copy your sendmail.cf into /etc/SysProfile/config1. Delete the orignial.
The script will symlink the cf file and restart sendmail. Edit the DS
entry for the relay you need on your local network.
Create an fstab in /etc/SysProfile/config1 for all fs you want
mounted/unmounted at start and stop.
Put the options file in the config
directory.
That should be it. RTFS. Send me any bugs/ideas/or patches.