LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-18-2009, 06:25 PM   #1
desertViking
Member
 
Registered: Aug 2005
Location: Arizona
Distribution: Slackware 13, Arch Linux
Posts: 85

Rep: Reputation: 15
Choosing network at boot time


Hi,

I've got a Slackware 13 desktop system that has an ethernet card and a wirelss card in it. I usually roll the PC over to the wall when I want to connect via the hardwire (maybe for a fresh install or downloading large amounts of data). Other times, I am connected via the wireless PCI card using WPA.

To avoid conflicts, I would like to tell the boot scripts whether it should choose the hardwire ethernet port or the wireless card.

Is there a standard way that this could be accomplished? I was thinking about run-levels on the kernel line, but not sure how that would work out.

Thx in advance for any advice you'd like to share.
 
Old 09-18-2009, 07:11 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

You have several options that you can use. 'ifpugd' is a daemon that is used to detect the cable status in/out.

'wicd' is another choice that you may want to look into.

These links and others can be found at 'Slackware-Links' . More than just SlackwareŽ links!
 
Old 09-18-2009, 09:03 PM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Here's an idea - I've just tried this somewhat but not fully. It should work however. Firstly - alter your /etc/rc.d/rc.inet1.conf network settings file surrounding eth0 and wlan0 settings something like this :
Code:
if [[ $IFACE="wired" ]] ;then
      USE_DHCP[0]="yes"
fi
if [[ $IFACE="wless" ]];then
   IFNAME[4]="wlan0"
   USE_DHCP[4]="yes"
   WLAN_all wlan settings[4]
fi
Substitute "all wlan settings" with the lines from your real settings.Then just have seperate lilo stanzas - one with :
Code:
append = "IFACE=wired"
and another with :
Code:
append = "IFACE=wless"
You'll obviously need a lilo stanza for the wired settings and another for the wireless ones. The boot time parameters will be set according to the stanza picked and should be picked up by the /etc/rc.inet1.conf script setting the interface accordindgly. So in effect you'll have a lilo section for wired networking and another for the wireless networking settings.

Last edited by bgeddy; 09-18-2009 at 09:08 PM.
 
Old 09-18-2009, 10:18 PM   #4
desertViking
Member
 
Registered: Aug 2005
Location: Arizona
Distribution: Slackware 13, Arch Linux
Posts: 85

Original Poster
Rep: Reputation: 15
That seems reasonable. Let me try that and I'll post what I learn. Thx for the thoughts!
 
  


Reply



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
Network not coming up at boot time CRX Linux - Networking 6 10-16-2007 04:14 PM
Choosing programs that load at boot time DiBosco Linux - Software 4 02-13-2007 10:44 AM
Choosing resolution at boot time. djeikyb Slackware 11 05-02-2006 02:25 PM
Choosing network at boot ElPuello Debian 3 09-09-2004 09:09 AM
problem with network interfaces during boot time kylnas Linux - Hardware 3 08-15-2003 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:48 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration