You are not logged in.
Hello,
I just succesfully installed netcfg v2. I can connect to the wireless network using
netcfg2 home
But I do not know how to do the following thins:
It is mentioned in the wiki, but I do not get what exactly I have to do for this.
I have 2 configuration: Home and Uni
- Can the startup script detect which Networks are available and connect to the available one?
- When I connect to the "Uni" configuration, I need to start vpnc afterwards. Can I somehow automate this?
Thanks!
Nathan
Offline
netcfg2 does not provide network detection. If you're comfortable with bash scripting, you could write an add-on for it yourself.
vpnc start-up can be handled using the POST_UP hook - see /etc/network.d examples.
Offline
netcfg2 can do 'dumb' detection on boot. Set SCAN="on" in both profiles, and put the profiles in your rc.conf NETWORKS=() line.
It'll check if each network is available, then connect if it is.
There's also an autodetect script in the netcfg2 source, look in the contrib dir in the tarball or git.
James
Offline
I should have seen the POST_UP hook, thanks!
Putting both profiles into the NETWORKS line works for me!
Thanks!
Offline