diff options
author | Fabio Sangiovanni <sjh+sbo@sanjioh.org> | 2013-06-02 23:31:49 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-06-04 00:11:27 -0500 |
commit | ddbd1b525955be986151fcbf10ba342ca4fba12c (patch) | |
tree | 5717a1ee796ae9a8083bede05d640ab4feaf61b3 /system/i8kutils/doinst.sh | |
parent | 7e6d55c4b3a4b22aeec97875e3ee1390d27e57db (diff) | |
download | slackbuilds-ddbd1b525955be986151fcbf10ba342ca4fba12c.tar.gz |
system/i8kutils: Added (utilities for Dell Inspiron and Latitude laptops)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/i8kutils/doinst.sh')
-rw-r--r-- | system/i8kutils/doinst.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/system/i8kutils/doinst.sh b/system/i8kutils/doinst.sh new file mode 100644 index 0000000000..44345888da --- /dev/null +++ b/system/i8kutils/doinst.sh @@ -0,0 +1,13 @@ +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/i8kmon.conf.new |