[Lunar-commits] CVS: theedge/var/lib/lunar/functions connect.lunar,
1.6, 1.7
Auke Kok
sofar at lunar-linux.org
Sun Mar 13 21:56:49 UTC 2005
Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory espresso.foo-projects.org:/tmp/cvs-serv1930
Modified Files:
connect.lunar
Log Message:
this is much more consistent. also adding raX interface type, which is kind of uncommon.
Index: connect.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/connect.lunar,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- connect.lunar 10 Dec 2004 10:46:33 -0000 1.6
+++ connect.lunar 13 Mar 2005 21:56:47 -0000 1.7
@@ -36,14 +36,14 @@
connect() {
debug_msg "connect ($@)"
- if ! ifconfig | grep -q -e "^eth" -e "^wlan" -e "^ppp" -e "^ath" -e "^tun"
+ if ! ifconfig | grep -q "^eth[0-9]\|^wlan[0-9]\|^ppp[0-9]\|^ath[0-9]\|^tun[0-9]\|ra[0-9]"
then
pon
# Timeout in deciseconds to wait for Interface to come up.
TIMEOUT=30
- until ifconfig | grep -q -e eth -e wlan -e ath -e tun -e ppp || [ $TIMEOUT == 0 ]
+ until ifconfig | grep -q "^eth[0-9]\|^wlan[0-9]\|^ppp[0-9]\|^ath[0-9]\|^tun[0-9]\|ra[0-9]" || [ $TIMEOUT == 0 ]
do
sleep 10
(( TIMEOUT-- ))
More information about the Lunar-commits
mailing list