diff options
author | Cem Keylan <cem@ckyln.com> | 2020-06-01 12:51:20 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-06-01 12:51:20 +0300 |
commit | 110e1be55f4f3a08e269ee55f6255e5a3da8b731 (patch) | |
tree | 58925458f351f24cf7aafa21f2cbeb8f3195b70e | |
parent | 067cc3d2ec25058b16702e88f50b23586f818731 (diff) | |
download | init-110e1be55f4f3a08e269ee55f6255e5a3da8b731.tar.gz |
rc.shutdown: seperate functions
-rwxr-xr-x | rc.shutdown | 7 |
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 |