package/xbmc: use poweroff to poweroff the RPi
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 4 Jun 2014 17:12:21 +0000 (19:12 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 8 Jun 2014 13:48:05 +0000 (15:48 +0200)
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>
package/xbmc/br-xbmc

index 922b5111b986784384c4008bfe2b328150c96267..fee5d51dd53a7fa05afbbdea08e4789c0c9972d6 100755 (executable)
@@ -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
             ;;