mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 01:42:58 +02:00
installer: Quietly drop error messages from umount commands at the end.
Sometimes, they say that their mountpoint was already umounted and so the user won't be annoyed.
This commit is contained in:
@@ -605,13 +605,13 @@ EXIT:
|
||||
|
||||
newtFinished();
|
||||
|
||||
system("/bin/umount /harddisk/proc");
|
||||
system("/bin/umount /harddisk/dev");
|
||||
system("/bin/umount /harddisk/sys");
|
||||
system("/bin/umount /harddisk/proc >/dev/null 2>&1");
|
||||
system("/bin/umount /harddisk/dev >/dev/null 2>&1");
|
||||
system("/bin/umount /harddisk/sys >/dev/null 2>&1");
|
||||
|
||||
system("/bin/umount /harddisk/var");
|
||||
system("/bin/umount /harddisk/boot");
|
||||
system("/bin/umount /harddisk");
|
||||
system("/bin/umount /harddisk/var >/dev/null 2>&1");
|
||||
system("/bin/umount /harddisk/boot >/dev/null 2>&1");
|
||||
system("/bin/umount /harddisk >/dev/null 2>&1");
|
||||
|
||||
if (!(allok))
|
||||
system("/etc/halt");
|
||||
|
||||
Reference in New Issue
Block a user