aboutsummaryrefslogtreecommitdiff
path: root/system/lirc/doinst.sh
diff options
context:
space:
mode:
authorJohann Wilhelm <johann.wilhelm@9mal6.de>2010-05-12 17:45:29 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:45:29 +0200
commit85baeb20e1ccc3ceb113320d5740f21fea338b9c (patch)
treeb30d54cd1663452099ce2aedb35985a773ea0791 /system/lirc/doinst.sh
parente57a26070192ebb157c5ce6d20aaa66f273af072 (diff)
system/lirc: Updated for version 0.8.4a
Diffstat (limited to 'system/lirc/doinst.sh')
-rw-r--r--system/lirc/doinst.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/system/lirc/doinst.sh b/system/lirc/doinst.sh
index 843f41a053ad6..07ee0983de34a 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@
+