I've recently been supporting a friends effort to get onto Linux, and she had a similar problem with her wireless network. Obviously she needs to store one setup for home and one setup for uni.
As far as I am aware, there is no "network profile" or equivalent in Slackware. At least, if there is, it's so obfuscated that you'd never think to try it
The solution I came up with for her was to mess with some of the /etc/rc.d scripts. I did the wireless equivalent of the following:
Code:
#################
# rc.inet1.conf #
#################
NETSWITCH = "home"
case "$NETSWITCH" in
home )
# Config information for eth0 @ home:
IPADDR[0]="192.168.0.69"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
;;
work )
# Config information for eth0 @ work:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""
;;
esac
Once you've done it, you can rerun the network script with: /etc/rc.d/rc.inet1 eth0_restart
Or if you have more than one physical card:
Code:
~# /etc/rc.d/rc.inet1 stop
~# /etc/rc.d/rc.inet1 start
I haven't tested it very thoroughly, so, please please please backup any files before modification!! I will accept no responsibility for typos in your variable names
Good luck!
- Piete
Edit:
I forgot to mention, if you hadn't already worked it out, you can now flip between home/work by changing the variable NETSWITCH in your file and rerunning the script as above. Seems simple enough to me, but, I like to make sure there are no misunderstandings!