Add back persistance fsck option
[live-boot-grml.git] / components / 9990-networking.sh
index 9613364..dd1d0f0 100755 (executable)
@@ -107,7 +107,7 @@ do_netsetup ()
                        # if configuration of device worked we should have an assigned
                        # IP address, if so let's use the device as $DEVICE for later usage.
                        # simple and primitive approach which seems to work fine
-                       if ifconfig $dev | grep -q 'inet.*addr:'
+                       if ifconfig $dev | grep -q -E 'inet.*addr:|inet [0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*'
                        then
                                export DEVICE="$dev"
                                break