summaryrefslogtreecommitdiffstats
path: root/urunlevel/my_linux/Trinux/net-config
blob: 2b85baa8244f1e994373a616763d422659fb247c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

echo "By default Trinux configures eth0 via DHCP"
found_faces=`dmesg | grep eth[0-9]: | cut -d: -f1`


# Check for pcmcia
if lsmod | grep pcmcia_core > /dev/null 2> /dev/null
then
	echo "PCMCIA modules running"
	if ifconfig $face | grep UP > /dev/null 2> /dev/null
	then
		echo "PCMCIA interface already configured: exiting..."
		exit  
	else
		echo "PCMCIA interface was not configured: trying again"
	fi
fi