diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-02-27 10:07:46 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-02-27 10:07:46 (GMT) |
commit | 6f5c5f9bff4c5377fa447815a27e427563ba5cae (patch) | |
tree | 10d840ee677937929ac0417b86692a3a6798bf90 /abs/core-testing/linhes-scripts | |
parent | 6b3e079eb1e54c76a904dc7b8693b25a0322c2ab (diff) | |
download | linhes_pkgbuild-6f5c5f9bff4c5377fa447815a27e427563ba5cae.zip linhes_pkgbuild-6f5c5f9bff4c5377fa447815a27e427563ba5cae.tar.gz linhes_pkgbuild-6f5c5f9bff4c5377fa447815a27e427563ba5cae.tar.bz2 |
linhes-scripts:Added script to facilitate easy upgrade to 6.02.00.
Diffstat (limited to 'abs/core-testing/linhes-scripts')
-rw-r--r-- | abs/core-testing/linhes-scripts/PKGBUILD | 3 | ||||
-rw-r--r-- | abs/core-testing/linhes-scripts/upgrade_to_0.22.sh | 79 |
2 files changed, 81 insertions, 1 deletions
diff --git a/abs/core-testing/linhes-scripts/PKGBUILD b/abs/core-testing/linhes-scripts/PKGBUILD index 60bdfb3..1fbd631 100644 --- a/abs/core-testing/linhes-scripts/PKGBUILD +++ b/abs/core-testing/linhes-scripts/PKGBUILD @@ -3,7 +3,7 @@ pkgname=linhes-scripts pkgver=1 -pkgrel=44 +pkgrel=45 pkgdesc="Various scripts that help to make LinHES, LinHES." arch=('i686' 'x86_64') license=('GPL2') @@ -34,6 +34,7 @@ linhes_update2.sh linhes_update3.sh install_hulu.sh update_schema_021_to_022.sh +upgrade_to_0.22.sh ) build() { diff --git a/abs/core-testing/linhes-scripts/upgrade_to_0.22.sh b/abs/core-testing/linhes-scripts/upgrade_to_0.22.sh new file mode 100644 index 0000000..ee23411 --- /dev/null +++ b/abs/core-testing/linhes-scripts/upgrade_to_0.22.sh @@ -0,0 +1,79 @@ +#!/bin/bash +#Script to facilitate easy upgrade to MythTV 0.22 in LinHES. +if [ "$(id -u)" != "0" ]; then + echo "This script must be run as root" 1>&2 + exit 1 +fi +function pause(){ + read -p "$*" +} +clear +echo "The script will guide you thru the process of upgrading LinHES to MythTV 0.22." +pause 'Press <ENTER> to continue...' +echo "Stopping the backend." +sv stop mythbackend &>/dev/null +echo "Sync'n with the repos..." +pacman -Sy &>/dev/null +echo "Removing MythVodka if installed as it is no longer compatible with MythTV." +if pacman -Qs mythvodka &>/dev/null + then + pacman -R mythvodka &>/dev/null +fi +echo "Backing up Online Streams listings." +cp /usr/share/mythtv/is.xml /usr/share/mythtv/is.xml.021 +echo "Removing mythcontrol, mythphone and mythsmolt if installed." +if pacman -Qs mythcontrols &>/dev/null + then + pacman -R mythcontrols &>/dev/null +fi +if pacman -Qs mythphone &>/dev/null + then + pacman -R mythphone &>/dev/null +fi +if pacman -Qs mythsmolt &>/dev/null + then + pacman -R mythsmolt &>/dev/null +fi +echo "Upgrading the kernel." +if pacman -Qs v4l-dvb &>/dev/null + then + pacman -Sf --noconfirm kernel26 &>/dev/null && pacman -Sf --noconfirm v4l-dvb + else + pacman -S kernel26 --noconfirm &>/dev/null +fi +echo "Checking for VDPAU packages and upgrading if needed." +if pacman -Qs vdpinfo &>/dev/null + then + pacman -Rd vdpinfo &>/dev/null && pacman -S --noconfirm nvidia &>/dev/null && pacman -S --noconfirm vdpauinfo &>/dev/null +fi +echo "Performing complete system upgrade." +echo "This may take some time depending on your connection speed." +echo "Server bandwidth utilization will also have an affect." +echo "Please be patient." +pacman -Su --noconfirm &>/dev/null +echo "Restoring Online Streams listings." +cp /usr/share/mythtv/is.xml.021 /usr/share/mythtv/is.xml +clear +echo "Starting the backend. This will automatically update the schema." +sv start mythbackend &>/dev/null +echo "I'll launch an xterm so you watch output backend log." +echo "Once the schema updates are complete, switch back to this xterm." +echo -e "\033[1mWhen you see \"Upgrading to MythTV schema version 1244\"\033[0m" +echo "You can switch back to this xterm." +echo -e "\033[1mNote:After pressing <ENTER>, I'll be asleep for 30 secs...\033[0m" +echo -e "\033[1mThis will give the schema time to upgrade.\033[0m" +pause 'Press <ENTER> to continue...' +xterm -fn *18* -e tail -f /var/log/mythtv/mythbackend.log & +#Sleeping for 30 seconds to give the schema time to upgrade.... +sleep 30 +read -p "Press <ENTER> to continue once the schema upgrade is complete." +echo -e "\033[1mNow, the frontend will launch to update the schema for any plugins.\033[0m" +echo -e "\033[1mOnce the this is done, please exit the frontend.\033[0m" +pause 'Press <ENTER> to continue...' +xterm -e mythfrontend +echo "Performing LinHES specific schema updates." +/usr/LH/bin/update_schema_021_to_022.sh +echo "All done!" +echo -e "\033[5mThanks for choosing LinHES!\033[0m" +pause "Press <ENTER> to reboot." +reboot |