Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-23-2008, 03:41 AM   #1
LQ Newbie
Registered: Jan 2008
Location: Somerset West, South Africa
Distribution: Debian testing amd64
Posts: 24

Rep: Reputation: 15
Identifying network devices at boot time.

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
Old 12-23-2008, 06:22 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
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
Old 01-10-2009, 01:58 AM   #3
LQ Newbie
Registered: Jan 2008
Location: Somerset West, South Africa
Distribution: Debian testing amd64
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks for your help

Compliments of the season to you and your family. Sorry this reply is so late.
Rob Key


administrator, linux

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
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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:36 PM.

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