null the type output

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2016-03-26 18:13:47 +03:00
parent 04ff160a7d
commit f0ceb7fd31

2
rc.in
View File

@ -129,7 +129,7 @@ rc.boot() {
}
rc.halt() {
if type -P halt; then
if type -P halt &>/dev/null; then
function rc.halt_poweroff { halt -p; }
function rc.halt_reboot { halt -r; }
elif (( $(</proc/sys/kernel/sysrq) )); then