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

Kurt J. Bosch kjb-temp-2009 at alpenjodel.de
Mon Aug 23 10:09:14 EDT 2010


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

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



More information about the arch-general mailing list