LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-11-2006, 07:36 PM   #1
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
Question 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.
 
Old 04-12-2006, 12:30 PM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
maybe this:
http://packages.debian.org/stable/admin/laptop-net
 
Old 04-12-2006, 06:40 PM   #3
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Original Poster
Rep: Reputation: 31
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!
 
Old 04-13-2006, 03:03 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
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
 
Old 04-13-2006, 11:38 AM   #5
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Original Poster
Rep: Reputation: 31
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!
 
Old 04-13-2006, 11:52 AM   #6
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Original Poster
Rep: Reputation: 31
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use automatic configuration script???? TAAN Linux - Networking 1 06-23-2004 12:28 PM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 12:20 AM
Does FreeBSD have an automatic kernel setup? Mortamer *BSD 6 02-24-2004 11:04 AM
Automatic Install Script dtheorem Linux From Scratch 1 11-07-2003 01:16 PM
Automatic Script micray Linux - Newbie 1 05-11-2002 04:53 PM


All times are GMT -5. The time now is 01:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration