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: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Yann E. MORIN 2014-06-04 19:12:21 +02:00 committed by Thomas Petazzoni
parent 7144f2f04b
commit 04be2f426f

View File

@ -26,8 +26,8 @@ while [ ${LOOP} -eq 1 ]; do
ret=$?
case "${ret}" in
0) ;;
64) halt; LOOP=0;;
66) reboot; LOOP=0;;
64) poweroff; LOOP=0;;
66) reboot; LOOP=0;;
*) # Crash
sleep 1
;;