From 9191514503acd4795994f7bd0b1bfd230bc103c8 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Tue, 22 Oct 2013 09:29:13 -0500
Subject: linhes-scripts: remove old unneeded upgrade scripts.

---
 abs/core/linhes-scripts/PKGBUILD                   |  12 +-
 .../linhes-scripts/update_schema_021_to_022.sh     |  21 ---
 abs/core/linhes-scripts/upgrade_linhes.sh          |  25 ---
 abs/core/linhes-scripts/upgrade_linhes_script.sh   | 176 ---------------------
 abs/core/linhes-scripts/upgrade_screen_rc          |   9 --
 abs/core/linhes-scripts/upgrade_to_0.22.sh         |  94 -----------
 6 files changed, 1 insertion(+), 336 deletions(-)
 delete mode 100644 abs/core/linhes-scripts/update_schema_021_to_022.sh
 delete mode 100755 abs/core/linhes-scripts/upgrade_linhes.sh
 delete mode 100644 abs/core/linhes-scripts/upgrade_linhes_script.sh
 delete mode 100644 abs/core/linhes-scripts/upgrade_screen_rc
 delete mode 100644 abs/core/linhes-scripts/upgrade_to_0.22.sh

diff --git a/abs/core/linhes-scripts/PKGBUILD b/abs/core/linhes-scripts/PKGBUILD
index c5849c0..78a1472 100644
--- a/abs/core/linhes-scripts/PKGBUILD
+++ b/abs/core/linhes-scripts/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=linhes-scripts
 pkgver=7
-pkgrel=57
+pkgrel=58
 pkgdesc="Various scripts that help to make LinHES, LinHES."
 arch=('i686' 'x86_64')
 license=('GPL2')
@@ -26,8 +26,6 @@ limit-mythcommflag.sh
 vdpau-detector
 screenshooter.sh
 run-limit-mythcommflag
-update_schema_021_to_022.sh
-upgrade_linhes.sh
 remove_php_mythvideo.sh
 removecommercials.sh
 system-cleanup.sh
@@ -35,17 +33,13 @@ myth2fuze
 dct700-cc.sh
 qip7100-cc.sh
 dtheme.sh
-upgrade_screen_rc
-upgrade_linhes_script.sh
 LinHES-osd
 )
 
 package() {
   cd ${srcdir}
   install -d ${pkgdir}/usr/LH/bin
-  install -d ${pkgdir}/usr/LH/etc
   install -D -m755 myth2* *.sh *.pl vdpau* run-* pause_* LinHES* ${pkgdir}/usr/LH/bin/
-  install -D -m755 upgrade_screen_rc ${pkgdir}/usr/LH/etc/
   mkdir -p ${pkgdir}/etc/sv/pause-mythcommflag/supervise
   cp run-pause-mythcommflag ${pkgdir}/etc/sv/pause-mythcommflag/run
   mkdir -p ${pkgdir}/etc/sv/limit-mythcommflag/supervise
@@ -69,8 +63,6 @@ md5sums=('47a66238d95259d75c9c5cbcbb6da19f'
          '3d0adf26280cde55a0c47188fff34826'
          'b2c3dd48a4abb976eda2d5fbf22a173a'
          'b527b01d119d3bc33b8fa69bdf1082bb'
-         '65629302a4d2c3adf88cdf0ebc10d493'
-         'ab469714d77f3a29c7dda715e5ab98e0'
          '87b0dc855181f98516acb18a7d551601'
          'c54a3afd4aa3c1af560c9b6adb600f3a'
          '2fb25aef03ffd1282414d8cca3df7056'
@@ -78,6 +70,4 @@ md5sums=('47a66238d95259d75c9c5cbcbb6da19f'
          'df727c98350a64e2171c950bbefc9c5d'
          '7b890e7044db38e8d439f67e398af206'
          '35693f50939d5827aeabfce8c5dce589'
-         '974c137d3fcb85942ba8945a1bc815fe'
-         'f454faeabfa153b10389a9a3bfd51c4a'
          'b608044c9e7530a400d8f5b88fdfe6e6')
diff --git a/abs/core/linhes-scripts/update_schema_021_to_022.sh b/abs/core/linhes-scripts/update_schema_021_to_022.sh
deleted file mode 100644
index 4157fb4..0000000
--- a/abs/core/linhes-scripts/update_schema_021_to_022.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-mysql mythconverg <<EOF
-update gameplayers set commandline = '/usr/bin/sdlmame -rp /myth/games/xmame/roms %s' where commandline = '/usr/game/mame -rp /myth/games/xmame/roms %s';
-update settings set data = '/myth/video_stuff/coverart' where value = 'VideoArtworkDir';
-update settings set data = '/myth/video_stuff/fanart' where value = 'mythvideo.fanartDir';
-update settings set data = '/myth/video_stuff/screenshots' where value = 'mythvideo.screenshotDir';
-update settings set data = '/myth/video_stuff/banners' where value = 'mythvideo.bannerDir';
-update settings set data = '/myth/video_stuff/trailers' where value = 'mythvideo.TrailersDir';
-update settings set data = '1' where value = 'mythvideo.TrailersRandomEnabled';
-update settings set data = '1' where value = 'mythvideo.EnableAlternatePlayer';
-update settings set data = '/myth/video_stuff/screenshots' where value = 'ScreenShotPath';
-update settings set data = '/myth/games/screenshots' where value = 'mythgame.screenshotdir';
-update settings set data = '/myth/games/fanart' where value = 'mythgame.fanartdir';
-update settings set data = '/myth/games/boxart' where value = 'mythgame.boxartdir';
-update settings set data = '3' where value = 'OverrideExitMenu';
-update settings set data = 'sudo sv start mythbackend' where value = 'BackendStartCommand';
-update settings set data = 'sudo sv stop mythbackend' where value = 'BackendStopCommand';
-update settings set data = '/usr/share/mythtv/mythvideo/scripts/tmdb.pl -M' where value = 'MovieListCommandLine';
-update settings set data = replace(data, 'imdb.pl', 'tmdb.pl');
-EOF
diff --git a/abs/core/linhes-scripts/upgrade_linhes.sh b/abs/core/linhes-scripts/upgrade_linhes.sh
deleted file mode 100755
index 84d6a51..0000000
--- a/abs/core/linhes-scripts/upgrade_linhes.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-mkfifo /tmp/upgrade.fifo
-
-set | grep -q WINDOWID
-status=$?
-
-if [ $status = 0 ]
-then
- echo "This script must run from the console (CTRL + ALT + F3) or ssh." 1>&2
- exit 1
-fi
-
-
-if [ "$(id -u)" != "0" ];
-then
-   echo "This script must be run as root." 1>&2
-   exit 1
-
-fi
-
-
-sv stop mythbackend
-sv stop frontend
-
-screen -c /usr/LH/etc/upgrade_screen_rc
diff --git a/abs/core/linhes-scripts/upgrade_linhes_script.sh b/abs/core/linhes-scripts/upgrade_linhes_script.sh
deleted file mode 100644
index e397006..0000000
--- a/abs/core/linhes-scripts/upgrade_linhes_script.sh
+++ /dev/null
@@ -1,176 +0,0 @@
-#!/bin/bash
-#Script to facilitate easy upgrade to latest LinHES.
-LOGFILE=/tmp/upgrade.fifo
-clear
-
-
-
-if [ "$(id -u)" != "0" ]; then
-   echo "This script must be run as root" 1>&2
-   exit 1
-
-fi
-
-
-function pause(){
-	read -p "$*"
-}
-
-
-echo "The script will guide you thru the process of upgrading to the latest LinHES."
-pause 'Press <ENTER> to continue...'
-echo
-echo "Sync'n with the repos..."
-echo
-pacman -Sy >>$LOGFILE 2>>$LOGFILE
-
-echo "Updating pacman"
-pacman -S  --noconfirm pacman >> $LOGFILE
-echo "Updating pacman database to new format"
-pacman-db-upgrade >>$LOGFILE
-
-echo "Removing misc outdated packages "
-pacman -R --noconfirm  aufs-utils aufs >> $LOGFILE
-pacman -R --noconfirm xf86-video-sis >> $LOGFILE
-pacman -R --noconfirm madwifi >> $LOGFILE
-pacman -R --noconfirm hauppauge-hvr-firmware >> $LOGFILE
-pacman -R --noconfirm v4l-dvb >> $LOGFILE
-
-
-echo "Resyncing with repository"
-pacman -Syyyy > $LOGFILE
-pacman -Qu > /tmp/linhes_upgrade
-if [ ! -s /tmp/linhes_upgrade ]
-then
-	echo "No upgrades found.  This could mean the repository is busy."
-	echo "Or your system is already up to date."
-	echo "If you have not upgraded, please try again later."
-	echo "Starting the backend."
-	sv start mythbackend &>/dev/null
-	exit 1
-fi
-if grep -E "Master|Stand" /etc/systemconfig &>/dev/null
-	then
-	echo "Stopping the backend."
-	sv stop mythbackend &>/dev/null
-fi
-if pacman -Qs mythvodka &>/dev/null
-	then
-	echo "Removing MythVodka if installed as it is no longer compatible with MythTV."
-	echo
-	pacman -R mythvodka &>/dev/null
-fi
-echo
-echo "Backing up Online Streams listings."
-echo
-cp /usr/share/mythtv/is.xml /usr/share/mythtv/is.xml.021
-echo "Removing mythcontrol and mythphone if installed."
-echo
-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 grep -q kernel26 /tmp/linhes_upgrade
-# then
-# 	echo "Upgrading the kernel."
-# 	echo
-# 		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
-# fi
-# if grep -q v4l-dvb /tmp/linhes_upgrade
-# then
-# 	pacman -Sf --noconfirm v4l-dvb &>/dev/null
-# fi
-# echo "Checking for VDPAU packages and upgrading if needed."
-# echo
-# if pacman -Qs vdpinfo-71xx &>/dev/null
-# 	then
-# 	pacman -Rd vdpinfo-71xx &>/dev/null
-# fi
-# if pacman -Qs vdpinfo-96xx &>/dev/null
-# 	then
-# 	pacman -Rd vdpinfo-96xx &>/dev/null
-# fi
-# 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."
-echo
-pacman -Su --noconfirm  2>$LOGFILE > $LOGFILE
-echo "Restoring Online Streams listings."
-echo
-cp /usr/share/mythtv/is.xml.021 /usr/share/mythtv/is.xml
-# if grep -E "Master|Stand" /etc/systemconfig &>/dev/null
-# 	then
-# 	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 1254\"\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
-# 	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
-# 	echo "Performing LinHES specific schema updates."
-# 	echo
-# 	/usr/LH/bin/update_schema_021_to_022.sh
-# 	cat /data/database/dvd_transcode_r6.sql | mysql -u root mythconverg
-# 	/usr/LH/bin/mythwelcome-config.py
-# fi
-#remove portmap as it's no longer used.
-
-remove_service.sh portmap
-
-wget http://linhes.org/downloads/R6/sources/wallpaper.png -P /tmp
-mv /tmp/wallpaper.png /home/mythtv/.fluxbox/
-chown mythtv.mythtv /home/mythtv/.fluxbox/wallpaper.png
-echo "All done!"
-
-
-
-echo -e "\033[5mThanks for choosing LinHES!\033[0m"
-        #echo "The kernel was upgraded, we need to reboot."
-        pause "Press <ENTER> to reboot."
-        reboot
-
-# if grep -q kernel26 /tmp/linhes_upgrade
-# then
-# 	echo "The kernel was upgraded, we need to reboot."
-# 	pause "Press <ENTER> to reboot."
-# 	reboot
-# else
-# 	if grep -q v4l-dvb /tmp/linhes_upgrade
-# 	then
-# 		echo "The V4L\DVB modules were upgraded."
-# 		pause "Press <ENTER> to reboot."
-# 		reboot
-# 	else
-# 	echo "Launching mythfrontend once again!"
-# 	echo "Enjoy the latest version!"
-# 	sleep 5
-# 	mythfrontend
-#         fi
-# fi
diff --git a/abs/core/linhes-scripts/upgrade_screen_rc b/abs/core/linhes-scripts/upgrade_screen_rc
deleted file mode 100644
index 8c49a8d..0000000
--- a/abs/core/linhes-scripts/upgrade_screen_rc
+++ /dev/null
@@ -1,9 +0,0 @@
-bind j focus down
-bind k focus up
-startup_message off
-screen -t upgrade bash -c "upgrade_linhes_script.sh"
-split
-focus down
-startup_message off
-screen -t progress bash -c "while true; do cat /tmp/upgrade.fifo; sleep .5; done"
-focus up
diff --git a/abs/core/linhes-scripts/upgrade_to_0.22.sh b/abs/core/linhes-scripts/upgrade_to_0.22.sh
deleted file mode 100644
index 8536a05..0000000
--- a/abs/core/linhes-scripts/upgrade_to_0.22.sh
+++ /dev/null
@@ -1,94 +0,0 @@
-#!/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...'
-if grep -E "Master|Stand" /etc/systemconfig &>/dev/null
-	then
-	echo "Stopping the backend."
-	sv stop mythbackend &>/dev/null
-fi
-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-71xx &>/dev/null
-	then
-	pacman -Rd vdpinfo-71xx &>/dev/null
-fi
-if pacman -Qs vdpinfo-96xx &>/dev/null
-	then
-	pacman -Rd vdpinfo-96xx &>/dev/null
-fi
-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
-if grep -E "Master|Stand" /etc/systemconfig &>/dev/null
-	then
-	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
-	cat /data/database/dvd_transcode_r6.sql | mysql -u root mythconverg
-fi
-echo "All done!"
-echo -e "\033[5mThanks for choosing LinHES!\033[0m"
-pause "Press <ENTER> to reboot."
-reboot
-- 
cgit v0.12

