From 21a93be4d35e5116070a7b8d88902a6ec91c1288 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Thu, 17 Jan 2013 21:54:49 +0200 Subject: [PATCH] xbmc: init: add 'safe shutdown / reboot'. we need this for RPi --- packages/mediacenter/xbmc/init.d/93_xbmc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/mediacenter/xbmc/init.d/93_xbmc b/packages/mediacenter/xbmc/init.d/93_xbmc index 164310c603..df8f7d9d05 100644 --- a/packages/mediacenter/xbmc/init.d/93_xbmc +++ b/packages/mediacenter/xbmc/init.d/93_xbmc @@ -78,18 +78,21 @@ fi 0) if [ ! $(pidof console-kit-daemon) ]; then touch "$LOCKDIR/$LOCKFILE" + _safe_shutdown poweroff -f fi ;; 64) if [ ! $(pidof console-kit-daemon) ]; then touch "$LOCKDIR/$LOCKFILE" + _safe_shutdown poweroff -f fi ;; 66) if [ ! $(pidof console-kit-daemon) ]; then touch "$LOCKDIR/$LOCKFILE" + _safe_shutdown reboot fi ;;