xbmc: simplyfing wakeup script, use system config file

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-03-11 22:23:06 +01:00
parent 0ceda4690f
commit 453aaa6785
2 changed files with 8 additions and 10 deletions

View File

@ -22,14 +22,13 @@
. /etc/profile
OPENELEC_SETTINGS="$HOME/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml"
case "$1" in
thaw|resume)
(
if [ -f "$OPENELEC_SETTINGS" ]; then
VIDEODBUPDATE=`grep WAKEUP_VIDEODBUPDATE $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
if [ "$VIDEODBUPDATE" = "true" ]; then
if [ -f /var/config/settings.conf ]; then
. /var/config/settings.conf
if [ "$WAKEUP_VIDEODBUPDATE" = "true" ]; then
usleep 5000000
xbmc-send --host=127.0.0.1 -a "UpdateLibrary(video)"
fi

View File

@ -22,14 +22,13 @@
. /etc/profile
OPENELEC_SETTINGS="$HOME/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml"
case "$1" in
thaw|resume)
(
if [ -f "$OPENELEC_SETTINGS" ]; then
MUSICDBUPDATE=`grep WAKEUP_MUSICDBUPDATE $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
if [ "$MUSICDBUPDATE" = "true" ]; then
if [ -f /var/config/settings.conf ]; then
. /var/config/settings.conf
if [ "$WAKEUP_MUSICDBUPDATE" = "true" ]; then
usleep 5000000
xbmc-send --host=127.0.0.1 -a "UpdateLibrary(music)"
fi