diff options
author | Britney Fransen <brfransen@gmail.com> | 2011-08-03 01:36:50 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2011-08-03 01:36:50 (GMT) |
commit | 5181927d0f5818c09ce08a2f7740266fa6e3dd6f (patch) | |
tree | 32e06cf2df4e5b968c2f9f37240745e8dfdff095 /abs/core/lirc/lirc.install | |
parent | 95917b4db6ef38648c1e5a2a4af4de966f1c2239 (diff) | |
parent | da370cffd12cea8aafd12e0159d6b6d15b740c0a (diff) | |
download | linhes_pkgbuild-5181927d0f5818c09ce08a2f7740266fa6e3dd6f.zip linhes_pkgbuild-5181927d0f5818c09ce08a2f7740266fa6e3dd6f.tar.gz linhes_pkgbuild-5181927d0f5818c09ce08a2f7740266fa6e3dd6f.tar.bz2 |
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/lirc/lirc.install')
-rw-r--r-- | abs/core/lirc/lirc.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/abs/core/lirc/lirc.install b/abs/core/lirc/lirc.install index 814312e..1f8fd7c 100644 --- a/abs/core/lirc/lirc.install +++ b/abs/core/lirc/lirc.install @@ -8,6 +8,24 @@ post_install() { 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 |