blob: 1f8fd7cdbecdf1ee758b837fce786c80b4c8c397 (
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
|
KERNEL_VERSION=2.6.39-LinHES
post_install() {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod $KERNEL_VERSION > /dev/null 2>&1
}
post_upgrade() {
post_install
. /etc/systemconfig
# Fix LircSocket in mythtv database
SOCKET=`mysql -u mythtv -pmythtv -B --skip-column-names -h "${dbhost}" -D mythconverg -e \
"SELECT data FROM settings WHERE value = 'LircSocket' AND hostname = '${hostname}';"`
if [ "${SOCKET}" != "/var/run/lirc/lircd" ]; then
mysql -u mythtv -pmythtv -B --skip-column-names -h "${dbhost}" -D mythconverg -e \
"UPDATE settings SET data = '/var/run/lirc/lircd' WHERE hostname = '${hostname}';"
else
echo ">>>"
echo ">>> ATTENTION! ATTENTION! ATTENTION!"
echo ">>> Unable to connect the the MySQL database to make needed"
echo ">>> changes to the LIRC socket."
echo ">>> LIRC now uses /var/run/lirc/lircd and /dev/lirc is now"
echo ">>> obsolete. Update your MythTV settings to reflect this."
echo ">>>"
fi
}
# arg 1: the old package version
post_remove() {
post_install
}
|