mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
Bring networking down also in runlevel 6, reboot
This fixes a seemingly long-running bug; we only brought down networking in shutdown/halt and for runlevel 1, single-user mode -- not reboot. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -883,7 +883,7 @@ void service_runlevel(int newlevel)
|
||||
sm_set_runlevel(&sm, newlevel);
|
||||
sm_step(&sm);
|
||||
|
||||
if (!rescue && runlevel <= 1)
|
||||
if (!rescue && (runlevel <= 1 || runlevel == 6))
|
||||
networking(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user