99shutdown: remove --no-wall argument for reboot, halt, etc...
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Tue, 31 Jul 2012 08:49:58 +0000 (10:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 31 Jul 2012 08:55:17 +0000 (10:55 +0200)
In some distros (Gentoo, for example) these commands don't honor
--no-wall argument.

modules.d/99shutdown/shutdown.sh

index aa0a81f..e1da91b 100755 (executable)
@@ -56,7 +56,7 @@ done
 _check_shutdown final
 
 getarg 'rd.break=shutdown' && emergency_shell --shutdown shutdown "Break before shutdown"
-[ "$1" = "reboot" ] && reboot -f -d -n --no-wall
-[ "$1" = "poweroff" ] && poweroff -f -d -n --no-wall
-[ "$1" = "halt" ] && halt -f -d -n --no-wall
+[ "$1" = "reboot" ] && reboot -f -d -n
+[ "$1" = "poweroff" ] && poweroff -f -d -n
+[ "$1" = "halt" ] && halt -f -d -n
 [ "$1" = "kexec" ] && kexec -e