Commit 04be2f42 authored by Yann E. MORIN's avatar Yann E. MORIN Committed by Thomas Petazzoni
Browse files

package/xbmc: use poweroff to poweroff the RPi



Using "poweroff" instead of "halt" has the side advantage of flashing
the "ACT" LED 10 times (@ ~1Hz) to instruct the user when it is safe
to unplug the power supply.

Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 7144f2f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ while [ ${LOOP} -eq 1 ]; do
    ret=$?
    case "${ret}" in
        0)  ;;
        64) halt;   LOOP=0;;
        64) poweroff; LOOP=0;;
        66) reboot;   LOOP=0;;
        *)  # Crash
            sleep 1