diff options
author | Johann Wilhelm <johann.wilhelm@9mal6.de> | 2010-05-12 17:45:29 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:45:29 +0200 |
commit | 85baeb20e1ccc3ceb113320d5740f21fea338b9c (patch) | |
tree | b30d54cd1663452099ce2aedb35985a773ea0791 /system/lirc/doinst.sh | |
parent | e57a26070192ebb157c5ce6d20aaa66f273af072 (diff) | |
download | slackbuilds-85baeb20e1ccc3ceb113320d5740f21fea338b9c.tar.gz |
system/lirc: Updated for version 0.8.4a
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@ + |