summaryrefslogtreecommitdiffstats
path: root/abs/core/lirc/lirc.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 17:13:29 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 17:13:29 (GMT)
commitac56fbd8d787a137ec3c6ed18c9e05086c631bb6 (patch)
tree33cc1bdb49a8111ebff32cb54033e7ad8d928c75 /abs/core/lirc/lirc.install
parentd85111e64c491591f337df0a41f42b690d2ebedc (diff)
downloadlinhes_pkgbuild-ac56fbd8d787a137ec3c6ed18c9e05086c631bb6.zip
linhes_pkgbuild-ac56fbd8d787a137ec3c6ed18c9e05086c631bb6.tar.gz
linhes_pkgbuild-ac56fbd8d787a137ec3c6ed18c9e05086c631bb6.tar.bz2
lirc 0.9.0
need to add iguanair back
Diffstat (limited to 'abs/core/lirc/lirc.install')
-rw-r--r--abs/core/lirc/lirc.install22
1 files changed, 2 insertions, 20 deletions
diff --git a/abs/core/lirc/lirc.install b/abs/core/lirc/lirc.install
index ba2c957..c35848a 100644
--- a/abs/core/lirc/lirc.install
+++ b/abs/core/lirc/lirc.install
@@ -1,31 +1,13 @@
-KERNEL_VERSION=2.6.39-LinHES
+EXTRAMODULES=extramodules-3.4-ARCH
post_install() {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
- depmod $KERNEL_VERSION > /dev/null 2>&1
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/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 value = 'LircSocket' AND 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