]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
udev network.sh update from dev-branch. Prevent the restart of already open network...
authorMika Laitio <lamikr@cc.jyu.fi>
Thu, 25 May 2006 07:21:29 +0000 (10:21 +0300)
committerRene Wagner <rw@handhelds.org>
Thu, 25 May 2006 21:25:03 +0000 (23:25 +0200)
Signed-off-by: lamikr <lamikr@cc.jyu.fi>
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/udev/files/network.sh

index 2cfbfa91b3042869f44af3e8c82f9054093cb19e..5e2bd5799a56e5284950f38eedb792edb7d7ff3f 100644 (file)
@@ -15,7 +15,7 @@ echo "$INTERFACE" | grep -q wifi && exit 0
 if grep -q "iface \+$INTERFACE" /etc/network/interfaces; then
   case $ACTION in
     add)
-       ifup $INTERFACE
+       ifconfig | grep -q "^$INTERFACE" || ifup $INTERFACE
        ;;
     remove)
        ifdown $INTERFACE