Signed-off-by: Florian Pritz <bluewind@xssn.at> --- network | 2 +- rc.shutdown | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/network b/network index 977e81e..d1ecdde 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 = 0 || $RUNLEVEL = 6 ]] ; then status "Skipping Network Shutdown" true exit 0 fi diff --git a/rc.shutdown b/rc.shutdown index 4eb29cc..bbd4444 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -3,6 +3,8 @@ # /etc/rc.shutdown # +export RUNLEVEL PRELEVEL + . /etc/rc.conf . /etc/rc.d/functions -- 1.7.2.1