LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Script for automatic network setup (http://www.linuxquestions.org/questions/linux-networking-3/script-for-automatic-network-setup-434272/)

leosgb 04-11-2006 07:36 PM

Script for automatic network setup
 
I was wondering if anyone has a script that could be used for automatic network configuration. Something like, say:
1) tries wireless networks from a preferred networks list
2) tries to connect to open access points
3) tries to connect theu eth0

It would be nice if this script would know that, for some reason, the wireless network or the wired nw is down and then it would relaunch itself.

Does anyone know how to do this? Thanks in advance for any help.

nx5000 04-12-2006 12:30 PM

maybe this:
http://packages.debian.org/stable/admin/laptop-net

leosgb 04-12-2006 06:40 PM

That is exactly what I am looking for but this one is a debian package and my laptop is gentoo. Can I use it though? And if possible, how? That's why I was looking for a script kinda-thing, to avoid distro problems. Thank you for the suggestion!

nx5000 04-13-2006 03:03 AM

Well either you find a specific for gentoo (hum a source then) or take the original one:

http://http.us.debian.org/pool/main/...26.orig.tar.gz

leosgb 04-13-2006 11:38 AM

Ok I am trying it now. Hope it works! Adding few libs required to compile it and will do it. Just as a reference, the correct link to the source is:
http://http.us.debian.org/debian/poo...26.orig.tar.gz

Thanks!

leosgb 04-13-2006 11:52 AM

Many compile errors... I am trying to sort them out but I dont have much time for this. I just wanted something already working... let's see what I will be able to do. Can you compile from the source in your system?


All times are GMT -5. The time now is 05:13 AM.