diff --git a/rc.in b/rc.in index d68280b..22b7a7f 100644 --- a/rc.in +++ b/rc.in @@ -132,7 +132,7 @@ rc.halt() { if type -P halt; then function rc.halt_poweroff { halt -p; } function rc.halt_reboot { halt -r; } - elif [[ -f /proc/sysrq-trigger ]]; then + elif (( $( /proc/sysrq-trigger; } function rc.halt_reboot { echo 'b' > /proc/sysrq-trigger; } else