summaryrefslogtreecommitdiff
path: root/sbin/rc
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/rc')
-rwxr-xr-xsbin/rc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/rc b/sbin/rc
index 368deeb..2285ce4 100755
--- a/sbin/rc
+++ b/sbin/rc
@@ -185,9 +185,11 @@ dep_stop() {
if [[ ${SOFTLEVEL} != "reboot" \
&& ${SOFTLEVEL} != "shutdown" ]] ; then
service_coldplugged "${service}" && return 0
- [[ -z ${OLDSOFTLEVEL} ]] \
+ if net_service "${service}" ; then
+ [[ -z ${OLDSOFTLEVEL} ]] \
|| ! in_runlevel "${service}" "${OLDSOFTLEVEL}" \
- && return 0
+ && return 0
+ fi
fi
# Should not work for 'use'