[PATCH] restrict NETWORK_PERSIST to runlevel 0 and 6

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



Signed-off-by: Florian Pritz <bluewind@xxxxxxx>
---
 network |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/network b/network
index 977e81e..1f3d3db 100755
--- a/network
+++ b/network
@@ -233,7 +233,7 @@ case "$1" in
 		#	exit
 		#fi
 
-		if [ "${NETWORK_PERSIST}" = "yes" -o "${NETWORK_PERSIST}" = "YES" ]; then
+		if [ "${NETWORK_PERSIST}" = "yes" -o "${NETWORK_PERSIST}" = "YES" ] && [[ $RUNLEVEL == [06] ]] ; then
 			status "Skipping Network Shutdown" true
 			exit 0
 		fi
-- 
1.7.2.1


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux