autoupdate: simplyfing autoupdate script, use system config file

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-03-11 22:21:49 +01:00
parent 6b139171b2
commit d5efec1a95
2 changed files with 6 additions and 6 deletions

View File

@ -20,13 +20,13 @@
# http://www.gnu.org/copyleft/gpl.html # http://www.gnu.org/copyleft/gpl.html
################################################################################ ################################################################################
OPENELEC_SETTINGS="$HOME/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml"
TMP_DIR="$HOME/.xbmc/temp" TMP_DIR="$HOME/.xbmc/temp"
if [ -f /etc/update.conf ]; then if [ -f /etc/update.conf ]; then
. /etc/update.conf . /etc/update.conf
elif [ -f "$OPENELEC_SETTINGS" ]; then elif [ -f /var/config/settings.conf ]; then
AUTOUPDATE=`grep UPDATE_AUTO $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"` . /var/config/settings.conf
AUTOUPDATE="$UPDATE_AUTO"
else else
exit 0 exit 0
fi fi

View File

@ -20,13 +20,13 @@
# http://www.gnu.org/copyleft/gpl.html # http://www.gnu.org/copyleft/gpl.html
################################################################################ ################################################################################
OPENELEC_SETTINGS="$HOME/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml"
TMP_DIR="$HOME/.xbmc/temp" TMP_DIR="$HOME/.xbmc/temp"
if [ -f /etc/update.conf ]; then if [ -f /etc/update.conf ]; then
. /etc/update.conf . /etc/update.conf
elif [ -f "$OPENELEC_SETTINGS" ]; then elif [ -f /var/config/settings.conf ]; then
AUTOUPDATE=`grep UPDATE_AUTO $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"` . /var/config/settings.conf
AUTOUPDATE="$UPDATE_AUTO"
else else
exit 0 exit 0
fi fi