aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/network9
1 files changed, 9 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 51582bae..2834df47 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -167,6 +167,15 @@ stop)
exit 1
fi
+ # Don't shut the network down when shutting down the system if configured
+ # as such in sysconfig
+ if is_false "$IFDOWN_ON_SHUTDOWN"; then
+ if systemctl is-system-running | grep -q 'stopping'; then
+ net_log $"system is shutting down, leaving interfaces up as requested"
+ exit 1
+ fi
+ fi
+
vlaninterfaces=""
vpninterfaces=""
xdslinterfaces=""