aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-06-01 12:51:20 +0300
committerCem Keylan <cem@ckyln.com>2020-06-01 12:51:20 +0300
commit110e1be55f4f3a08e269ee55f6255e5a3da8b731 (patch)
tree58925458f351f24cf7aafa21f2cbeb8f3195b70e
parent067cc3d2ec25058b16702e88f50b23586f818731 (diff)
downloadinit-110e1be55f4f3a08e269ee55f6255e5a3da8b731.tar.gz
rc.shutdown: seperate functions
-rwxr-xr-xrc.shutdown7
1 files 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