summaryrefslogtreecommitdiffstats
path: root/system/lirc/doinst.sh
diff options
context:
space:
mode:
author Murat D. Kadirov <banderols@gmail.com>2010-05-13 00:40:51 +0200
committer Robby Workman <rworkman@slackbuilds.org>2010-05-13 00:40:51 +0200
commit987400e2380babcbc118603fb2e7c98794d1d82a (patch)
tree070af29a2acabaeb2cb7fa825c9d03a64f803914 /system/lirc/doinst.sh
parent5431c4f00376ebd04b43aba92e930b1e9c5b0f65 (diff)
downloadslackbuilds-987400e2380babcbc118603fb2e7c98794d1d82a.tar.gz
slackbuilds-987400e2380babcbc118603fb2e7c98794d1d82a.tar.xz
system/lirc: Updated for version 0.8.6
Diffstat (limited to 'system/lirc/doinst.sh')
-rw-r--r--system/lirc/doinst.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/system/lirc/doinst.sh b/system/lirc/doinst.sh
index 07ee0983de..404db1c946 100644
--- a/system/lirc/doinst.sh
+++ b/system/lirc/doinst.sh
@@ -1,19 +1,18 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
- # If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
- # toss the redundant copy
rm $NEW
fi
- # Otherwise, we leave the .new copy for the admin to consider...
}
config etc/lircd.conf.new
config etc/lircmd.conf.new
config etc/lircrc.new
+config etc/logrotate.d/lirc.new
-chroot . /sbin/depmod -ae @KERNEL@
-
+if [ -x sbin/depmod ]; then
+ chroot . /sbin/depmod -ae @KERNEL@ 1> /dev/null 2> /dev/null
+fi