summaryrefslogtreecommitdiff
path: root/system/lirc/doinst.sh
diff options
context:
space:
mode:
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