diff options
Diffstat (limited to 'sbin/rc')
-rwxr-xr-x | sbin/rc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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' |