LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 06-23-2010, 06:08 AM   #1
tnght2001
LQ Newbie
 
Registered: Jun 2010
Posts: 8

Rep: Reputation: 0
how to show network interface card (NIC) info like IP, netmask


r...i trying to do Configuring the network Script but i always got error asking
./hk.sh: line 18: syntax error near unexpected token `done'
./hk.sh: line 18: `done'

Why? i ready don't know can you help me pls?
#!/bin/bash
options1="\"option 1\" \"option 2\" \"quit\""

echo options $options

eval set $options1
select opt in "$@"
do
echo $options1
if [ "$options1"="option 1" ] ; then
for NIC in /sys/class/net/* ; do
INTERFACE=${NIC##*/} udevadm test --action=add $NIC
done

if [ "$options1"="quit" ] ; then
exit
fi
done

Last edited by tnght2001; 06-23-2010 at 06:13 AM.
 
Old 06-23-2010, 07:00 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network interface card (NIC) calexander Linux - Newbie 3 05-14-2010 09:41 PM
NIC card incative and show me no buffer space available for pinging kyawlinnyein Linux - Networking 0 06-05-2008 11:38 AM
Slackware / Ethernet Network Interface Card (NIC) problem. dwengert Slackware 2 05-21-2008 09:30 PM
NIC and Interface Device mapping info? dileepkk Linux - Networking 3 07-20-2004 05:33 AM
Network device control doesn't show wireless NIC taoweijia Linux - Wireless Networking 1 02-20-2004 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:41 PM.

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