Просмотр исходного кода

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>
Yann E. MORIN 11 лет назад
Родитель
Сommit
04be2f426f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      package/xbmc/br-xbmc

+ 2 - 2
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
             ;;