diff options
Diffstat (limited to 'system/lirc/doinst.sh')
-rw-r--r-- | system/lirc/doinst.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/system/lirc/doinst.sh b/system/lirc/doinst.sh index 843f41a053..07ee0983de 100644 --- a/system/lirc/doinst.sh +++ b/system/lirc/doinst.sh @@ -1,12 +1,11 @@ -#!/bin/sh - 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 + 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... @@ -16,3 +15,5 @@ config etc/lircd.conf.new config etc/lircmd.conf.new config etc/lircrc.new +chroot . /sbin/depmod -ae @KERNEL@ + |