null the type output
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
04ff160a7d
commit
f0ceb7fd31
2
rc.in
2
rc.in
|
@ -129,7 +129,7 @@ rc.boot() {
|
||||||
}
|
}
|
||||||
|
|
||||||
rc.halt() {
|
rc.halt() {
|
||||||
if type -P halt; then
|
if type -P halt &>/dev/null; then
|
||||||
function rc.halt_poweroff { halt -p; }
|
function rc.halt_poweroff { halt -p; }
|
||||||
function rc.halt_reboot { halt -r; }
|
function rc.halt_reboot { halt -r; }
|
||||||
elif (( $(</proc/sys/kernel/sysrq) )); then
|
elif (( $(</proc/sys/kernel/sysrq) )); then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user