[PATCH 6/6] Do not try to bring an already-up inferface back up.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 ifup |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ifup b/ifup
index 83f6522..3878c41 100755
--- a/ifup
+++ b/ifup
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+# bail immediatly if the interface is already up
+[ -f "/net.$1.up" ] && exit 0
+
 # loopback is always handled the same way
 [ "$1" = "lo" ] && {
     ip link set lo up
-- 
1.6.0.6

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux