]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ifup.sh: check for "-m" to set manualup
authorHarald Hoyer <harald@redhat.com>
Fri, 2 Mar 2012 11:03:38 +0000 (12:03 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 8 Mar 2012 10:00:29 +0000 (11:00 +0100)
modules.d/40network/ifup.sh

index b138e8e3a243213aaf6f026c559954afb5a9e538..b55362cc6ae8d0df928f33fa10a6a75b1d628114 100755 (executable)
@@ -50,7 +50,7 @@ fi
 
 # disable manual ifup while netroot is set for simplifying our logic
 # in netroot case we prefer netroot to bringup $netif automaticlly
-[ -n "$2" ] && [ -z "$netroot" ] && manualup="$2"
+[ -n "$2" -a "$2" = "-m" ] && [ -z "$netroot" ] && manualup="$2"
 [ -z "$netroot" ] && [ -z "$manualup" ] && exit 0
 [ -n "$manualup" ] && >/tmp/net.$netif.manualup