blob: 0a63e0acc9499879b9c09d3cd28f38d83fd3f26e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#!/bin/bash
# Process that call this script
# func update
# supplemental web
echo "Starting Update"
MYTH_RUN_STATUS="1"
. /etc/profile
if [ x$1 = x ]
then
. /etc/systemconfig
else
Hostupdateplan=$1
fi
case $Hostupdateplan in
"Myth_only")
echo "Updating only myth packages"
postfix=`cat $INSTALL_DIR/usr/local/share/mythtv/.releasetype`
for mythl in mythphone mytharchive mythbrowser mythnews mythgame mythflix mythweather mythcontrols mythgallery mythmovietime mythmusic mythsmolt mythvideo mythweb mythtv
do
mythlist="$mythlist $mythl$postfix"
done
pacman -Sy
list=`pacman -Qu $pkg |grep Targets`
for pkg in LinHES-config LinHES-system mythinstall $mythlist
do
echo $list|grep -q $pkg
if [ $? = 0 ]
then
echo "Updating $pkg"
pacman --noconfirm -S $pkg
else
echo "$pkg is up to date"
fi
done
;;
"All")
echo ""
echo "Updating ALL packages"
pacman -Sy
pacman --noconfirm -Su --force
;;
"None")
echo ""
echo "Updating NO packages"
;;
"Notify")
echo ""
echo "Notify if there are updates"
/usr/LH/bin/linhes_update.sh -s
;;
*) echo ""
echo "Unknown $Hostupdateplan, skipping updates"
;;
esac
|