Re: [PATCH] restrict NETWORK_PERSIST to runlevel 0 and 6

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



2010-08-22 18:50, Florian Pritz:
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

Looks good to me now apart the white space coding style could be fixed:
if [ "${NETWORK_PERSIST}" = "yes" -o "${NETWORK_PERSIST}" = "YES" ] && [[ $RUNLEVEL == [06] ]]; then

Maybe you should file a bug report?

--
Kurt



[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