summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/systemconfig.sh
blob: dce8c74c0ae9e0c87e09234602b1a3e2feb36906 (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
#!/bin/bash
###################################################################
#Script to configure your system based off the values in /etc/systemconfig
#Any changes made to config files will be removed when systemconfig.sh is run
#
#JM
echo $@ >/tmp/systemconfig.call
echo "----------------------start of systemconfig $@ ----------------------"
. /etc/profile
. $MV_ROOT/bin/networkconfig.sh
postfix=`cat ${BASE}/usr/local/share/mythtv/.releasetype`

for i in larch liblarch larch-profiles larch-live
do
    pacman -Q $i
    if [ $? == 0 ]
    then
        pacman -R $i --noconfirm
    fi
done

 sed -i '/larch/d' /etc/pacman.conf

systemconfig.py -m $@
rc=$?
echo "systemconfig.py exit code $rc"
exit $rc