[Lunar-commits] <lunar> [FIX] #358: Accept usb devices as a connection to internet
Stefan Wold
ratler at lunar-linux.org
Sat Aug 28 11:02:44 CEST 2010
commit 9d8a88cb04f6ebe9fc761e44c1d3373cb495c850
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat Aug 28 11:02:44 2010 +0200
[FIX] #358: Accept usb devices as a connection to internet
---
var/lib/lunar/functions/connect.lunar | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/var/lib/lunar/functions/connect.lunar b/var/lib/lunar/functions/connect.lunar
index b7b4e5d..e5faab0 100644
--- a/var/lib/lunar/functions/connect.lunar
+++ b/var/lib/lunar/functions/connect.lunar
@@ -37,14 +37,14 @@ connect() {
local TIMEOUT
debug_msg "connect ($@)"
- if ! ifconfig | grep -q "^eth[0-9]\|^wlan[0-9]\|^ppp[0-9]\|^ath[0-9]\|^tun[0-9]\|ra[0-9]"
+ if ! ifconfig | grep -q "^eth[0-9]\|^wlan[0-9]\|^ppp[0-9]\|^ath[0-9]\|^tun[0-9]\|^ra[0-9]\|^usb[0-9]"
then
pon
# Timeout in deciseconds to wait for Interface to come up.
TIMEOUT=30
- until ifconfig | grep -q "^eth[0-9]\|^wlan[0-9]\|^ppp[0-9]\|^ath[0-9]\|^tun[0-9]\|ra[0-9]" || [ $TIMEOUT == 0 ]
+ until ifconfig | grep -q "^eth[0-9]\|^wlan[0-9]\|^ppp[0-9]\|^ath[0-9]\|^tun[0-9]\|^ra[0-9]\|^usb[0-9]" || [ $TIMEOUT == 0 ]
do
sleep 10
(( TIMEOUT-- ))
More information about the Lunar-commits
mailing list