[Lunar-commits] <lunar> Also account for bridge devices

Stefan Wold ratler at lunar-linux.org
Sat Jan 5 12:48:44 CET 2013


commit d3601692d03adb24cb4195e552dfe89835919ac7
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 05 Jan 2013 03:48:44 -0800
URL: https://github.com/lunar-linux/lunar/commit/d3601692d03adb24cb4195e552dfe89835919ac7

Also account for bridge devices
---
  libs/connect.lunar | +2/-2     
  1 file changed, 2 insertions(+), 2 deletions(-)

--- a/libs/connect.lunar
+++ b/libs/connect.lunar
@@ -37,14 +37,14 @@ connect()  {
   local TIMEOUT
   debug_msg "connect ($@)"
 
-  if ! ip link | egrep -q '^[0-9]*: (eth|wlan|ppp|ath|tun|ra|usb)[0-9]+.*state UP'
+  if ! ip link | egrep -q '^[0-9]*: (eth|wlan|ppp|ath|tun|ra|usb|br)[0-9]+.*state UP'
   then
     pon
 
     # Timeout in deciseconds to wait for Interface to come up.
     TIMEOUT=30
 
-    until ip link | egrep -q '^[0-9]*: (eth|wlan|ppp|ath|tun|ra|usb)[0-9]+.*state UP' || [ $TIMEOUT == 0  ]
+    until ip link | egrep -q '^[0-9]*: (eth|wlan|ppp|ath|tun|ra|usb|br)[0-9]+.*state UP' || [ $TIMEOUT == 0  ]
     do
       sleep  10
       (( TIMEOUT-- ))




More information about the Lunar-commits mailing list