You are not logged in.

#1 2007-12-10 23:11:19

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

netcfg v2 works - but I do not know how to do this things

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

#2 2007-12-10 23:58:25

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: netcfg v2 works - but I do not know how to do this things

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

#3 2007-12-11 08:35:56

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: netcfg v2 works - but I do not know how to do this things

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

#4 2007-12-11 10:08:29

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

Re: netcfg v2 works - but I do not know how to do this things

I should have seen the POST_UP hook, thanks!

Putting both profiles into the NETWORKS line works for me!
Thanks!

Offline

Board footer

Powered by FluxBB