mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge branch 'master' of github.com:OpenELEC/OpenELEC.tv
This commit is contained in:
commit
518dae3dd7
@ -341,7 +341,6 @@ if [ "$BOOTLOADER" = "u-boot" ]; then
|
||||
fi
|
||||
config_message="$config_message\n - UDisks support:\t\t\t $UDISKS"
|
||||
config_message="$config_message\n - UPower support:\t\t\t $UPOWER"
|
||||
config_message="$config_message\n - Update support:\t\t\t $UPDATE_SUPPORT"
|
||||
config_message="$config_message\n - Installer support:\t\t\t $INSTALLER_SUPPORT"
|
||||
|
||||
# Misc. Filesystems
|
||||
|
@ -1,3 +1,6 @@
|
||||
3.0.4
|
||||
- update to boblightd-467
|
||||
|
||||
3.0.3
|
||||
- update to boblightd-465
|
||||
|
||||
|
@ -19,8 +19,8 @@
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="boblightd"
|
||||
PKG_VERSION="465"
|
||||
PKG_REV="3"
|
||||
PKG_VERSION="467"
|
||||
PKG_REV="4"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://code.google.com/p/boblight"
|
||||
|
@ -1,3 +1,6 @@
|
||||
3.0.10 (in progress)
|
||||
- added the ability to use a script's stdout as the xmltv source instead of a fixed file or URL
|
||||
|
||||
3.0.9
|
||||
- update to TVHeadend 3.4
|
||||
|
||||
|
@ -27,6 +27,7 @@ ADDON_SETTINGS="$ADDON_HOME/settings.xml"
|
||||
XMLTV_TYPE=`grep XMLTV_TYPE $ADDON_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
|
||||
XMLTV_LOCATION_FILE=`grep XMLTV_LOCATION_FILE $ADDON_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
|
||||
XMLTV_LOCATION_WEB=`grep XMLTV_LOCATION_WEB $ADDON_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
|
||||
XMLTV_LOCATION_SCRIPT=`grep XMLTV_LOCATION_SCRIPT $ADDON_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
|
||||
|
||||
dflag=
|
||||
vflag=
|
||||
@ -36,6 +37,10 @@ if [[ $# -lt 1 ]]; then
|
||||
if [ "$XMLTV_TYPE" = "FILE" ]; then
|
||||
cat "$XMLTV_LOCATION_FILE"
|
||||
exit 0
|
||||
elif [ "$XMLTV_TYPE" = "SCRIPT" ]; then
|
||||
if [ -e "$XMLTV_LOCATION_SCRIPT" ] ; then
|
||||
exec "$XMLTV_LOCATION_SCRIPT"
|
||||
fi
|
||||
elif [ "$XMLTV_TYPE" = "WEB" ]; then
|
||||
wget -qO - "$XMLTV_LOCATION_WEB"
|
||||
exit 0
|
||||
|
@ -8,6 +8,7 @@
|
||||
<string id="1011">XMLTV source type</string>
|
||||
<string id="1012">XMLTV File location</string>
|
||||
<string id="1013">XMLTV Web location</string>
|
||||
<string id="1014">XMLTV Script location</string>
|
||||
<string id="1020">DVB Configuration</string>
|
||||
<string id="1021">Unload DVB mudules before suspend</string>
|
||||
<string id="1022">Wait for frontend initialization</string>
|
||||
|
@ -5,9 +5,10 @@
|
||||
<category label="1000">
|
||||
<setting label="1010" type="lsep"/>
|
||||
<setting type="sep" />
|
||||
<setting id="XMLTV_TYPE" type="labelenum" label="1011" values="NONE|FILE|WEB" sort="yes" default="NONE"/>
|
||||
<setting id="XMLTV_TYPE" type="labelenum" label="1011" values="NONE|FILE|SCRIPT|WEB" sort="yes" default="NONE"/>
|
||||
<setting id="XMLTV_LOCATION_FILE" type="file" label="1012" default="" enable="eq(-1,0)"/>
|
||||
<setting id="XMLTV_LOCATION_WEB" type="text" label="1013" default="http://" enable="eq(-2,2)"/>
|
||||
<setting id="XMLTV_LOCATION_WEB" type="text" label="1013" default="http://" enable="eq(-2,3)"/>
|
||||
<setting id="XMLTV_LOCATION_SCRIPT" type="file" label="1014" default="" enable="eq(-3,2)"/>
|
||||
</category>
|
||||
<category label="1001">
|
||||
<setting label="1020" type="lsep"/>
|
||||
|
@ -42,8 +42,8 @@ mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/res/plugins/live
|
||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/config/plugins
|
||||
cp $BUILD/rotorng-[0-9]*/examples/rotorng.conf $ADDON_BUILD/$PKG_ADDON_ID/config/plugins
|
||||
|
||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/config/epgsources/epgdata2xmltv
|
||||
cp $BUILD/vdr-plugin-xmltv2vdr*/dist/epgdata2xmltv/epgdata2xmltv.dist $ADDON_BUILD/$PKG_ADDON_ID/config/epgsources/epgdata2xmltv/
|
||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/config/epgsources/
|
||||
cp $BUILD/vdr-plugin-xmltv2vdr*/dist/epgdata2xmltv/epgdata2xmltv.dist $ADDON_BUILD/$PKG_ADDON_ID/config/epgsources/epgdata2xmltv
|
||||
|
||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/plugin
|
||||
cp -PR $BUILD/vdr-[0-9]*/.install/usr/lib/vdr/libvdr-dvbhddevice.so.* $ADDON_BUILD/$PKG_ADDON_ID/plugin
|
||||
|
@ -1,3 +1,9 @@
|
||||
3.0.7 (in progress)
|
||||
- update to vdr-plugin-xmltv2vdr-30903cc0
|
||||
- cleanup epgsources handling
|
||||
- * support for multiple epgsources
|
||||
- * support user defined epgsources
|
||||
|
||||
3.0.6
|
||||
- fix startup error in vnsiserver / 32bit
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
<setting id="CONTROL_PORT" value="2002" />
|
||||
<setting id="ENABLE_ROTORNG" value="false" />
|
||||
<setting id="ENABLE_EPGSEARCH" value="false" />
|
||||
<setting id="ENABLE_XMLTV2VDR" value="false" />
|
||||
<setting id="SOFTCAM_PLUGIN" value="sc" />
|
||||
<setting id="ENABLE_DVB_PLUGIN" value="false" />
|
||||
<setting id="DVB_PLUGIN" value="dvbsddevice" />
|
||||
|
@ -46,8 +46,18 @@ fi
|
||||
mkdir -p /var/config
|
||||
cat "$ADDON_DIR/settings-default.xml" | awk -F\" '{print $2"=\""$4"\""}' | sed '/^=/d' > /var/config/vdr.conf.default
|
||||
cat "$ADDON_SETTINGS" | awk -F\" '{print $2"=\""$4"\""}' | sed '/^=/d' > /var/config/vdr.conf
|
||||
|
||||
#handle epgsources
|
||||
mkdir -p /var/lib/epgsources
|
||||
cp $ADDON_DIR/config/epgsources/epgdata2xmltv/epgdata2xmltv.dist /var/lib/epgsources/epgdata2xmltv
|
||||
mkdir -p $ADDON_HOME/config/epgsources
|
||||
for source in `find $ADDON_DIR/config/epgsources -type f`; do
|
||||
if [ ! -e $ADDON_HOME/config/epgsources/`basename $source` ] ; then
|
||||
cp $source $ADDON_HOME/config/epgsources/
|
||||
fi
|
||||
done
|
||||
for source in `find $ADDON_HOME/config/epgsources -type f`; do
|
||||
cp $source /var/lib/epgsources
|
||||
done
|
||||
|
||||
. /var/config/vdr.conf.default
|
||||
. /var/config/vdr.conf
|
||||
|
@ -22,8 +22,6 @@
|
||||
<string id="1043">control: listen on port</string>
|
||||
<string id="1044">Enable plugin: epgsearch</string>
|
||||
<string id="1045">Enable plugin: xmltv2vdr</string>
|
||||
<string id="1046">Enable epgdata.com</string>
|
||||
<string id="1047">epgdata.com PIN</string>
|
||||
<string id="1051">VDR Configuration</string>
|
||||
<string id="1052">VDR Video Dir</string>
|
||||
<string id="1053">PVR plugin</string>
|
||||
|
@ -28,8 +28,6 @@
|
||||
<setting id="ENABLE_ROTORNG" type="bool" label="1041" default="false" />
|
||||
<setting id="ENABLE_EPGSEARCH" type="bool" label="1044" default="false" />
|
||||
<setting id="ENABLE_XMLTV2VDR" type="bool" label="1045" default="false" />
|
||||
<setting id="ENABLE_EPGDATA" type="bool" label="1046" default="false" />
|
||||
<setting id="EPGDATA_PIN" type="number" label="1047" values="" enable="!eq(-1,false)" default="1234"/>
|
||||
<setting type="sep" />
|
||||
<setting id="ENABLE_SOFTCAM" type="bool" label="1036" default="true" />
|
||||
<setting id="SOFTCAM_PLUGIN" type="labelenum" label="1037" values="sc|dvbapi" enable="!eq(-1,false)" default="sc" />
|
||||
|
@ -20,8 +20,8 @@
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="oscam"
|
||||
PKG_VERSION="8568"
|
||||
PKG_REV="9"
|
||||
PKG_VERSION="8636"
|
||||
PKG_REV="10"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.streamboard.tv/oscam/wiki"
|
||||
|
@ -46,9 +46,6 @@ fi
|
||||
sh $AUTOSTART
|
||||
fi
|
||||
|
||||
# starting autoupdate
|
||||
[ -f /usr/bin/autoupdate ] && /usr/bin/autoupdate &
|
||||
|
||||
# waiting for Xorg to start
|
||||
wait_for_xorg
|
||||
|
||||
|
@ -69,6 +69,7 @@ cd $PKG_BUILD
|
||||
--disable-ofono \
|
||||
--disable-dundee \
|
||||
--disable-pacrunner \
|
||||
--disable-neard \
|
||||
--disable-wispr \
|
||||
--disable-tools \
|
||||
--enable-client \
|
||||
|
@ -19,7 +19,7 @@
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="connman"
|
||||
PKG_VERSION="a5a030e"
|
||||
PKG_VERSION="1aa44c8"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
|
@ -42,7 +42,9 @@
|
||||
|
||||
syslogd $SYSLOGD_OPTIONS
|
||||
|
||||
sleep 3
|
||||
if [ "$SYSLOG_REMOTE" == "true" -a "$SYSLOG_SERVER" ]; then
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
progress "Starting Kernellog daemon"
|
||||
klogd
|
||||
|
@ -1,27 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
# Location of repo
|
||||
UPDATEURL="http://snapshots.openelec.tv"
|
||||
|
||||
# Setup Download tool (wget/scp)
|
||||
DL_METHOD="wget"
|
||||
|
||||
# Keyfile to use (with scp method)
|
||||
KEYFILE=""
|
@ -1,27 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
# Location of repo
|
||||
UPDATEURL="http://releases.openelec.tv"
|
||||
|
||||
# Setup Download tool (wget/scp)
|
||||
DL_METHOD="wget"
|
||||
|
||||
# Keyfile to use (with scp method)
|
||||
KEYFILE=""
|
@ -1,52 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
if [ "$OPENELEC_VERSION" = devel ]; then
|
||||
cp $PKG_DIR/scripts/autoupdate.devel $INSTALL/usr/bin/autoupdate
|
||||
else
|
||||
cp $PKG_DIR/scripts/autoupdate.release $INSTALL/usr/bin/autoupdate
|
||||
fi
|
||||
|
||||
mkdir -p $INSTALL/etc
|
||||
if [ -f $PROJECT_DIR/$PROJECT/autoupdate/repo.conf ]; then
|
||||
cp $PROJECT_DIR/$PROJECT/autoupdate/repo.conf $INSTALL/etc
|
||||
else
|
||||
if [ "$OPENELEC_VERSION" = devel ]; then
|
||||
cp $PKG_DIR/config/repo.conf.devel $INSTALL/etc/repo.conf
|
||||
else
|
||||
cp $PKG_DIR/config/repo.conf.release $INSTALL/etc/repo.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f $PROJECT_DIR/$PROJECT/autoupdate/update.key.db ]; then
|
||||
cp $PROJECT_DIR/$PROJECT/autoupdate/update.key.db $INSTALL/etc
|
||||
fi
|
||||
|
||||
if [ -f $PROJECT_DIR/$PROJECT/autoupdate/update.conf ]; then
|
||||
cp $PROJECT_DIR/$PROJECT/autoupdate/update.conf $INSTALL/etc
|
||||
fi
|
||||
|
||||
mkdir -p $INSTALL/etc/pm/sleep.d
|
||||
cp $PKG_DIR/sleep.d/* $INSTALL/etc/pm/sleep.d
|
@ -1,36 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="autoupdate"
|
||||
PKG_VERSION="0.2.0"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.openelec.tv"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="toolchain"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="tools"
|
||||
PKG_SHORTDESC="autoupdate: an simple automatic update script"
|
||||
PKG_LONGDESC="autoupdate: an simple automatic update script."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="no"
|
@ -1,142 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
TMP_DIR="$HOME/.xbmc/temp"
|
||||
|
||||
if [ -f /etc/update.conf ]; then
|
||||
. /etc/update.conf
|
||||
elif [ -f /storage/.cache/openelec/update.conf ]; then
|
||||
. /storage/.cache/openelec/update.conf
|
||||
AUTOUPDATE="$UPDATE_AUTO"
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -f /etc/repo.conf ]; then
|
||||
. /etc/repo.conf
|
||||
if [ -n "$KEYFILE" ]; then
|
||||
SCP_ARG="-i $KEYFILE"
|
||||
fi
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
download () {
|
||||
case "$DL_METHOD" in
|
||||
wget)
|
||||
wget -U "$THIS_DISTRIBUTION ($THIS_ARCH): $THIS_VERSION" \
|
||||
-c ${1}?sysid=$SYSTEMID \
|
||||
-O $2 > /dev/null 2>&1
|
||||
[ $? -ne 0 ] && exit 1
|
||||
;;
|
||||
scp)
|
||||
scp $SCP_ARG "$1" $TMP_DIR
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
send_message () {
|
||||
xbmc-send --host=127.0.0.1 -a "Notification(Automatic update service:,$1,20000)"
|
||||
}
|
||||
|
||||
if [ ! -f /var/lock/update.lock ]; then
|
||||
|
||||
if [ "$AUTOUPDATE" = "manually" -o "$AUTOUPDATE" = "manual" -o "$AUTOUPDATE" = "auto" ]; then
|
||||
|
||||
# sleep a bit, maybe we have a lot of work ;-)
|
||||
usleep 30000000
|
||||
|
||||
# getting this version
|
||||
THIS_DISTRIBUTION="`cat /etc/distribution`"
|
||||
THIS_ARCH="`cat /etc/arch`"
|
||||
THIS_VERSION="`cat /etc/version`"
|
||||
|
||||
# get infofile with the latest released version
|
||||
rm -rf $TMP_DIR/latest
|
||||
download "$UPDATEURL/latest" "$TMP_DIR/latest"
|
||||
|
||||
NEW_IMAGE="`cat $TMP_DIR/latest |grep "$THIS_DISTRIBUTION-$THIS_ARCH"`"
|
||||
NEW_VERSION="`echo "$NEW_IMAGE" | cut -d "-" -f5 | tr -d "r"`"
|
||||
|
||||
rm -rf $TMP_DIR/latest
|
||||
|
||||
# compare installed version with latest released version
|
||||
THIS_VERSION="`echo "$THIS_VERSION" | cut -d "-" -f3 | tr -d "r"`"
|
||||
|
||||
if [ -z $NEW_VERSION ]; then
|
||||
NEW_VERSION="$THIS_VERSION"
|
||||
fi
|
||||
|
||||
if [ "$THIS_VERSION" -lt "$NEW_VERSION" ]; then
|
||||
|
||||
if [ "$AUTOUPDATE" = "manually" -o "$AUTOUPDATE" = "manual" ]; then
|
||||
|
||||
# show a message if a new version is avaible
|
||||
send_message "New update avaible: r$NEW_VERSION - please update manually"
|
||||
|
||||
elif [ "$AUTOUPDATE" = "auto" ]; then
|
||||
|
||||
# show a message if a new version is avaible
|
||||
send_message "New update avaible: r$NEW_VERSION - downloading and extracting the new version..."
|
||||
|
||||
# locking autoupdate
|
||||
touch /var/lock/update.lock
|
||||
|
||||
# downloading the new version
|
||||
rm -rf $TMP_DIR/$NEW_IMAGE.tar.bz2
|
||||
download "$UPDATEURL/$NEW_IMAGE.tar.bz2" "$TMP_DIR/$NEW_IMAGE.tar.bz2"
|
||||
|
||||
# extract the image
|
||||
rm -rf $TMP_DIR/$NEW_IMAGE
|
||||
tar -xjvf $TMP_DIR/$NEW_IMAGE.tar.bz2 -C $TMP_DIR
|
||||
|
||||
# move KERNEL and SYSTEM to an temporary file
|
||||
mkdir -p /storage/.update
|
||||
if [ -f $TMP_DIR/$NEW_IMAGE/target/KERNEL -a -f $TMP_DIR/$NEW_IMAGE/target/KERNEL.md5 ]; then
|
||||
mv $TMP_DIR/$NEW_IMAGE/target/KERNEL /storage/.update/KERNEL.tmp
|
||||
mv $TMP_DIR/$NEW_IMAGE/target/KERNEL.md5 /storage/.update/KERNEL.md5.tmp
|
||||
fi
|
||||
if [ -f $TMP_DIR/$NEW_IMAGE/target/SYSTEM -a -f $TMP_DIR/$NEW_IMAGE/target/SYSTEM.md5 ]; then
|
||||
mv $TMP_DIR/$NEW_IMAGE/target/SYSTEM /storage/.update/SYSTEM.tmp
|
||||
mv $TMP_DIR/$NEW_IMAGE/target/SYSTEM.md5 /storage/.update/SYSTEM.md5.tmp
|
||||
fi
|
||||
sync
|
||||
|
||||
# move KERNEL and SYSTEM to the right place
|
||||
mv /storage/.update/KERNEL.tmp /storage/.update/KERNEL
|
||||
mv /storage/.update/KERNEL.md5.tmp /storage/.update/KERNEL.md5
|
||||
mv /storage/.update/SYSTEM.tmp /storage/.update/SYSTEM
|
||||
mv /storage/.update/SYSTEM.md5.tmp /storage/.update/SYSTEM.md5
|
||||
sync
|
||||
|
||||
# cleanup tmp files
|
||||
rm -rf $TMP_DIR/$NEW_IMAGE
|
||||
rm -rf $TMP_DIR/$NEW_IMAGE.tar.bz2
|
||||
rm -rf /storage/.update/*.tmp
|
||||
|
||||
# we are ready (hopefully)
|
||||
send_message "Update r$NEW_VERSION - downloaded and extracted - please reboot to install"
|
||||
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
@ -1,161 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
TMP_DIR="$HOME/.xbmc/temp"
|
||||
|
||||
if [ -f /etc/update.conf ]; then
|
||||
. /etc/update.conf
|
||||
elif [ -f /storage/.cache/openelec/update.conf ]; then
|
||||
. /storage/.cache/openelec/update.conf
|
||||
AUTOUPDATE="$UPDATE_AUTO"
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -f /etc/repo.conf ]; then
|
||||
. /etc/repo.conf
|
||||
if [ -n "$KEYFILE" ]; then
|
||||
SCP_ARG="-i $KEYFILE"
|
||||
fi
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
download () {
|
||||
case "$DL_METHOD" in
|
||||
wget)
|
||||
wget -U "$THIS_DISTRIBUTION ($THIS_ARCH): $THIS_VERSION" \
|
||||
-c ${1}?sysid=$SYSTEMID \
|
||||
-O $2 > /dev/null 2>&1
|
||||
[ $? -ne 0 ] && exit 1
|
||||
;;
|
||||
scp)
|
||||
scp $SCP_ARG "$1" $TMP_DIR
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
send_message () {
|
||||
xbmc-send --host=127.0.0.1 -a "Notification(Automatic update service:,$1,20000)"
|
||||
}
|
||||
|
||||
if [ ! -f /var/lock/update.lock ]; then
|
||||
|
||||
if [ "$AUTOUPDATE" = "manually" -o "$AUTOUPDATE" = "manual" -o "$AUTOUPDATE" = "auto" ]; then
|
||||
|
||||
# sleep a bit, maybe we have a lot of work ;-)
|
||||
usleep 30000000
|
||||
|
||||
# getting this version
|
||||
THIS_DISTRIBUTION="`cat /etc/distribution`"
|
||||
THIS_ARCH="`cat /etc/arch`"
|
||||
THIS_VERSION="`cat /etc/version`"
|
||||
THIS_MAJOR="`echo "$THIS_VERSION" | cut -d "." -f1`"
|
||||
THIS_MINOR="`echo "$THIS_VERSION" | cut -d "." -f2`"
|
||||
THIS_PATCH="`echo "$THIS_VERSION" | cut -d "." -f3`"
|
||||
|
||||
# get infofile with the latest released version
|
||||
rm -rf $TMP_DIR/latest
|
||||
download "$UPDATEURL/latest" "$TMP_DIR/latest"
|
||||
|
||||
NEW_IMAGE="`cat $TMP_DIR/latest |grep "$THIS_DISTRIBUTION-$THIS_ARCH"`"
|
||||
NEW_VERSION="`echo "$NEW_IMAGE" | cut -d "-" -f3`"
|
||||
|
||||
rm -rf $TMP_DIR/latest
|
||||
|
||||
# compare installed version with latest released version
|
||||
NEW_MAJOR="`echo "$NEW_VERSION" | cut -d "." -f1`"
|
||||
NEW_MINOR="`echo "$NEW_VERSION" | cut -d "." -f2`"
|
||||
NEW_PATCH="`echo "$NEW_VERSION" | cut -d "." -f3`"
|
||||
|
||||
if [ "$THIS_PATCH" -lt "$NEW_PATCH" -a \
|
||||
"$THIS_MINOR" -eq "$NEW_MINOR" -a \
|
||||
"$THIS_MAJOR" -eq "$NEW_MAJOR" ] || \
|
||||
[ "$THIS_MINOR" -lt "$NEW_MINOR" -a \
|
||||
"$THIS_MAJOR" -eq "$NEW_MAJOR" -a \
|
||||
"$NEW_MINOR" -lt 90 ] || \
|
||||
[ "$THIS_MINOR" -lt "$NEW_MINOR" -a \
|
||||
"$THIS_MAJOR" -eq "$NEW_MAJOR" -a \
|
||||
"$THIS_MINOR" -ge 90 -a \
|
||||
"$NEW_MINOR" -ge 90 ] || \
|
||||
[ "$THIS_MINOR" -ge 90 -a \
|
||||
"$NEW_MINOR" -lt 90 -a \
|
||||
$(( $THIS_MAJOR + 1 )) -eq "$NEW_MAJOR" ]; then
|
||||
AUTOUPDATE="$AUTOUPDATE"
|
||||
elif [ "$THIS_MAJOR" -lt "$NEW_MAJOR" -a \
|
||||
"$NEW_MINOR" -lt 90 ]; then
|
||||
AUTOUPDATE="manually"
|
||||
else
|
||||
AUTOUPDATE="no"
|
||||
fi
|
||||
|
||||
if [ "$AUTOUPDATE" = "manually" -o "$AUTOUPDATE" = "manual" ]; then
|
||||
|
||||
# show a message if a new version is available
|
||||
send_message "New update available: $NEW_VERSION - please update manually"
|
||||
|
||||
elif [ "$AUTOUPDATE" = "auto" ]; then
|
||||
|
||||
# show a message if a new version is available
|
||||
send_message "New update available: $NEW_VERSION - downloading and extracting the new version..."
|
||||
|
||||
# locking autoupdate
|
||||
touch /var/lock/update.lock
|
||||
|
||||
# downloading the new version
|
||||
rm -rf $TMP_DIR/$NEW_IMAGE.tar.bz2
|
||||
download "$UPDATEURL/$NEW_IMAGE.tar.bz2" "$TMP_DIR/$NEW_IMAGE.tar.bz2"
|
||||
|
||||
# extract the image
|
||||
rm -rf $TMP_DIR/$NEW_IMAGE
|
||||
tar -xjvf $TMP_DIR/$NEW_IMAGE.tar.bz2 -C $TMP_DIR
|
||||
|
||||
# move KERNEL and SYSTEM to an temporary file
|
||||
mkdir -p /storage/.update
|
||||
if [ -f $TMP_DIR/$NEW_IMAGE/target/KERNEL -a -f $TMP_DIR/$NEW_IMAGE/target/KERNEL.md5 ]; then
|
||||
mv $TMP_DIR/$NEW_IMAGE/target/KERNEL /storage/.update/KERNEL.tmp
|
||||
mv $TMP_DIR/$NEW_IMAGE/target/KERNEL.md5 /storage/.update/KERNEL.md5.tmp
|
||||
fi
|
||||
if [ -f $TMP_DIR/$NEW_IMAGE/target/SYSTEM -a -f $TMP_DIR/$NEW_IMAGE/target/SYSTEM.md5 ]; then
|
||||
mv $TMP_DIR/$NEW_IMAGE/target/SYSTEM /storage/.update/SYSTEM.tmp
|
||||
mv $TMP_DIR/$NEW_IMAGE/target/SYSTEM.md5 /storage/.update/SYSTEM.md5.tmp
|
||||
fi
|
||||
sync
|
||||
|
||||
# move KERNEL and SYSTEM to the right place
|
||||
mv /storage/.update/KERNEL.tmp /storage/.update/KERNEL
|
||||
mv /storage/.update/KERNEL.md5.tmp /storage/.update/KERNEL.md5
|
||||
mv /storage/.update/SYSTEM.tmp /storage/.update/SYSTEM
|
||||
mv /storage/.update/SYSTEM.md5.tmp /storage/.update/SYSTEM.md5
|
||||
sync
|
||||
|
||||
# cleanup tmp files
|
||||
rm -rf $TMP_DIR/$NEW_IMAGE
|
||||
rm -rf $TMP_DIR/$NEW_IMAGE.tar.bz2
|
||||
rm -rf /storage/.update/*.tmp
|
||||
|
||||
# we are ready (hopefully)
|
||||
send_message "Update $NEW_VERSION - downloaded and extracted - please reboot to install"
|
||||
|
||||
fi
|
||||
fi
|
||||
fi
|
@ -1,31 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. /etc/profile
|
||||
|
||||
case "$1" in
|
||||
thaw|resume)
|
||||
autoupdate &
|
||||
;;
|
||||
*) exit $NA
|
||||
;;
|
||||
esac
|
@ -314,9 +314,6 @@
|
||||
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB )
|
||||
SWAPFILESIZE="262144"
|
||||
|
||||
# build with automatic update support (yes / no)
|
||||
UPDATE_SUPPORT="yes"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="yes"
|
||||
|
||||
|
@ -315,9 +315,6 @@
|
||||
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB )
|
||||
SWAPFILESIZE="262144"
|
||||
|
||||
# build with automatic update support (yes / no)
|
||||
UPDATE_SUPPORT="yes"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="no"
|
||||
|
||||
|
@ -314,9 +314,6 @@
|
||||
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB )
|
||||
SWAPFILESIZE="262144"
|
||||
|
||||
# build with automatic update support (yes / no)
|
||||
UPDATE_SUPPORT="yes"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="yes"
|
||||
|
||||
|
@ -314,9 +314,6 @@
|
||||
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB )
|
||||
SWAPFILESIZE="262144"
|
||||
|
||||
# build with automatic update support (yes / no)
|
||||
UPDATE_SUPPORT="yes"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="yes"
|
||||
|
||||
|
@ -314,9 +314,6 @@
|
||||
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB )
|
||||
SWAPFILESIZE="262144"
|
||||
|
||||
# build with automatic update support (yes / no)
|
||||
UPDATE_SUPPORT="yes"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="yes"
|
||||
|
||||
|
@ -314,9 +314,6 @@
|
||||
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB )
|
||||
SWAPFILESIZE="262144"
|
||||
|
||||
# build with automatic update support (yes / no)
|
||||
UPDATE_SUPPORT="yes"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="yes"
|
||||
|
||||
|
@ -314,9 +314,6 @@
|
||||
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB )
|
||||
SWAPFILESIZE="262144"
|
||||
|
||||
# build with automatic update support (yes / no)
|
||||
UPDATE_SUPPORT="yes"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="yes"
|
||||
|
||||
|
@ -314,9 +314,6 @@
|
||||
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB )
|
||||
SWAPFILESIZE="131072"
|
||||
|
||||
# build with automatic update support (yes / no)
|
||||
UPDATE_SUPPORT="yes"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="no"
|
||||
|
||||
|
@ -314,9 +314,6 @@
|
||||
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB )
|
||||
SWAPFILESIZE="262144"
|
||||
|
||||
# build with automatic update support (yes / no)
|
||||
UPDATE_SUPPORT="yes"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="yes"
|
||||
|
||||
|
@ -309,9 +309,6 @@
|
||||
# swapfile size if SWAP_SUPPORT=yes in kB (example: 262144 = 256MB )
|
||||
SWAPFILESIZE="262144"
|
||||
|
||||
# build with automatic update support (yes / no)
|
||||
UPDATE_SUPPORT="yes"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="yes"
|
||||
|
||||
|
@ -141,9 +141,6 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
|
||||
# Sensors support
|
||||
[ "$SENSOR_SUPPORT" = "yes" ] && $SCRIPTS/install lm_sensors
|
||||
|
||||
# Update support
|
||||
[ "$UPDATE_SUPPORT" = "yes" ] && $SCRIPTS/install autoupdate
|
||||
|
||||
# Installer support
|
||||
[ "$INSTALLER_SUPPORT" = "yes" ] && $SCRIPTS/install installer
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user