diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-06-04 19:12:21 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-06-08 15:48:05 +0200 |
commit | 04be2f426ff89a1306fb2c8160c142b4c910efc4 (patch) | |
tree | 194a8855d04aff8e6655c4f04d56e2edeeaf4b1e | |
parent | 7144f2f04b705538a893e538a6b851f536f433b6 (diff) | |
download | buildroot-04be2f426ff89a1306fb2c8160c142b4c910efc4.tar.gz buildroot-04be2f426ff89a1306fb2c8160c142b4c910efc4.zip |
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>
-rwxr-xr-x | package/xbmc/br-xbmc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/xbmc/br-xbmc b/package/xbmc/br-xbmc index 922b5111b9..fee5d51dd5 100755 --- a/package/xbmc/br-xbmc +++ b/package/xbmc/br-xbmc @@ -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 ;; |