diff options
author | Richard Ellis <rellis@dp100.com> | 2010-05-12 23:32:54 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 23:32:54 +0200 |
commit | ed1a268a9b5846e1e0b654dcecf39f6f71ffeea0 (patch) | |
tree | 761c9a29d3c992bf673fa5ee62a31782775433ba /network/xnetload/doinst.sh | |
parent | 0d9cd4b8b635e1a39d7a34e9079e3c4639248c1f (diff) | |
download | slackbuilds-ed1a268a9b5846e1e0b654dcecf39f6f71ffeea0.tar.gz |
network/xnetload: Added to 12.2 repository
Diffstat (limited to 'network/xnetload/doinst.sh')
-rw-r--r-- | network/xnetload/doinst.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/network/xnetload/doinst.sh b/network/xnetload/doinst.sh new file mode 100644 index 0000000000..be28a0da1f --- /dev/null +++ b/network/xnetload/doinst.sh @@ -0,0 +1,16 @@ +#!/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/X11/app-defaults/XNetload.new |