summaryrefslogtreecommitdiffstats
path: root/abs/core/lirc/lirc.install
diff options
context:
space:
mode:
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