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:
Joachim Wiberg
2022-03-01 20:46:01 +01:00
parent 5423b5b0a2
commit 62dad82ba8
+1 -1
View File
@@ -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);
}