[arch-general] [PATCH] restrict NETWORK_PERSIST to runlevel 0 and 6

Florian Pritz bluewind at xssn.at
Sun Aug 22 12:50:07 EDT 2010


Signed-off-by: Florian Pritz <bluewind at xssn.at>
---
 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


More information about the arch-general mailing list