From 85baeb20e1ccc3ceb113320d5740f21fea338b9c Mon Sep 17 00:00:00 2001 From: Johann Wilhelm Date: Wed, 12 May 2010 17:45:29 +0200 Subject: system/lirc: Updated for version 0.8.4a --- system/lirc/doinst.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'system/lirc/doinst.sh') 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@ + -- cgit v1.2.3