diff options
author | David Somero <dsomero@hotmail.com> | 2010-05-11 20:02:02 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:02:02 +0200 |
commit | caba00dee0659b8a0cc4d1e97d15c69261a51c06 (patch) | |
tree | d80bb37735195e38ff61333dee4e293983bbd188 /system/lirc/doinst.sh | |
parent | ddce670a824a0416c17d9d5532c795b96815b548 (diff) | |
download | slackbuilds-caba00dee0659b8a0cc4d1e97d15c69261a51c06.tar.gz |
system/lirc: Added to 12.0 repository
Diffstat (limited to 'system/lirc/doinst.sh')
-rw-r--r-- | system/lirc/doinst.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/system/lirc/doinst.sh b/system/lirc/doinst.sh new file mode 100644 index 0000000000..843f41a053 --- /dev/null +++ b/system/lirc/doinst.sh @@ -0,0 +1,18 @@ +#!/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 + 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 + |