* [Buildroot] [PATCH] package/xbmc: use poweroff to poweroff the RPi
@ 2014-06-04 17:12 Yann E. MORIN
0 siblings, 0 replies; only message in thread
From: Yann E. MORIN @ 2014-06-04 17:12 UTC (permalink / raw
To: buildroot
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
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>
---
package/xbmc/br-xbmc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/xbmc/br-xbmc b/package/xbmc/br-xbmc
index 922b511..fee5d51 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
;;
--
1.8.3.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-04 17:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04 17:12 [Buildroot] [PATCH] package/xbmc: use poweroff to poweroff the RPi Yann E. MORIN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.