Blame 0028-ifup.sh-check-for-m-to-set-manualup.patch
|
Harald Hoyer |
ee76a0 |
From 5861184e87e9d9164c093d3600d85c670c828886 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
ee76a0 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
ee76a0 |
Date: Fri, 2 Mar 2012 12:03:38 +0100
|
|
Harald Hoyer |
ee76a0 |
Subject: [PATCH] ifup.sh: check for "-m" to set manualup
|
|
Harald Hoyer |
ee76a0 |
|
|
Harald Hoyer |
ee76a0 |
---
|
|
Harald Hoyer |
ee76a0 |
modules.d/40network/ifup.sh | 2 +-
|
|
Harald Hoyer |
ee76a0 |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
Harald Hoyer |
ee76a0 |
|
|
Harald Hoyer |
ee76a0 |
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
|
|
Harald Hoyer |
ee76a0 |
index b138e8e..b55362c 100755
|
|
Harald Hoyer |
ee76a0 |
--- a/modules.d/40network/ifup.sh
|
|
Harald Hoyer |
ee76a0 |
+++ b/modules.d/40network/ifup.sh
|
|
Harald Hoyer |
ee76a0 |
@@ -50,7 +50,7 @@ fi
|
|
Harald Hoyer |
ee76a0 |
|
|
Harald Hoyer |
ee76a0 |
# disable manual ifup while netroot is set for simplifying our logic
|
|
Harald Hoyer |
ee76a0 |
# in netroot case we prefer netroot to bringup $netif automaticlly
|
|
Harald Hoyer |
ee76a0 |
-[ -n "$2" ] && [ -z "$netroot" ] && manualup="$2"
|
|
Harald Hoyer |
ee76a0 |
+[ -n "$2" -a "$2" = "-m" ] && [ -z "$netroot" ] && manualup="$2"
|
|
Harald Hoyer |
ee76a0 |
[ -z "$netroot" ] && [ -z "$manualup" ] && exit 0
|
|
Harald Hoyer |
ee76a0 |
[ -n "$manualup" ] && >/tmp/net.$netif.manualup
|
|
Harald Hoyer |
ee76a0 |
|