Support debian_networking boot option to use Debian's network behavior
[live-boot-grml.git] / components / 9990-main.sh
index 0202130..b9bd71b 100755 (executable)
@@ -182,11 +182,14 @@ Live ()
        mount --rbind /run/live ${rootmnt}/lib/live/mount
 
        Fstab
        mount --rbind /run/live ${rootmnt}/lib/live/mount
 
        Fstab
-       Netbase
 
        Swap
 
 
        Swap
 
-       Grml_Networking
+       if grep -q debian_networking /proc/cmdline ; then
+               Netbase
+       else
+               Grml_Networking
+       fi
 
        exec 1>&6 6>&-
        exec 2>&7 7>&-
 
        exec 1>&6 6>&-
        exec 2>&7 7>&-