LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 12-23-2008, 03:41 AM   #1
robertkey
LQ Newbie
 
Registered: Jan 2008
Location: Somerset West, South Africa
Distribution: Debian testing amd64
Posts: 9
Thanked: 0
Identifying network devices at boot time.


[Log in to get rid of this advertisement]
Hi I boot linux off a USB stick on many different computers with different hardware. How can I determine in a script which devices eth0, eth1, wlan0 exist and which hardware devices they apply too? Sometimes a wireless card is wlan0, other times it is eth1 or even eth3! The proc/net/dev file does not inidicate which hardware is installed. Thanks, Robert Key
robertkey is offline  
Tag This Post ,
Reply With Quote
Old 12-23-2008, 06:22 AM   #2
tredegar
Senior Member
 
Registered: May 2003
Location: London, UK
Distribution: Kubuntu6.06.1LTS (still excellent!). Kubuntu 8.04.1
Posts: 4,373
Thanked: 141
Is
echo Wireless interface is $(cat /proc/net/wireless | grep : | cut -b1-6)
what you are looking for?

And welcome to LQ!

Last edited by tredegar; 12-23-2008 at 07:16 AM.. Reason: Tidied up
tredegar is offline     Reply With Quote
Old 01-10-2009, 01:58 AM   #3
robertkey
LQ Newbie
 
Registered: Jan 2008
Location: Somerset West, South Africa
Distribution: Debian testing amd64
Posts: 9
Thanked: 0

Original Poster
Thanks for your help

Compliments of the season to you and your family. Sorry this reply is so late.
Rob Key
robertkey is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Identifying Network drives MTUser2007 Linux - Newbie 2 10-13-2008 11:49 PM
Network not coming up at boot time CRX Linux - Networking 6 10-16-2007 05:14 PM
network module/daemon load at boot time justanotherkv Debian 2 07-28-2007 02:51 PM
Multiple network configurations at boot time. HOW? FairyFighter Linux - General 14 03-10-2004 06:04 AM
problem with network interfaces during boot time kylnas Linux - Hardware 3 08-15-2003 08:32 AM


All times are GMT -5. The time now is 11:34 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration