mirror of
https://github.com/troglobit/finit.git
synced 2026-10-18 10:59:34 +00:00
Run swapoff interactively, let user know what's happening.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
b37fa2b417
commit
86c1398778
1 file changed
+1
-1
@@ -323,7 +323,7 @@ void do_shutdown(shutop_t op)
|
||||
/* Unmount any tmpfs before unmounting swap ... */
|
||||
unmount_tmpfs();
|
||||
if (whichp("swapoff"))
|
||||
run("swapoff -a", "swapoff");
|
||||
run_interactive("swapoff -a", "Disabling system swap");
|
||||
|
||||
/* ... unmount remaining regular file systems. */
|
||||
unmount_regular();
|
||||
|
||||
Reference in new issue
Block a user