From 110e1be55f4f3a08e269ee55f6255e5a3da8b731 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 1 Jun 2020 12:51:20 +0300 Subject: rc.shutdown: seperate functions --- rc.shutdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index 82aaff4..a3f14d5 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -29,12 +29,13 @@ out "Sending KILL signal to all processes..."; { killall5 -KILL } -out "Unmounting filesystems and disabling swap..." -out "Remounting rootfs as readonly"; { +out "Unmounting filesystems and disabling swap..."; { swapoff -a umount -rat nosysfs,noproc,nodevtmpfs,notmpfs - mount -o remount,ro / +} 2>&1 | log +out "Remounting rootfs as readonly..."; { + mount -o remount,ro / sync } 2>&1 | log -- cgit v1.2.3