summaryrefslogtreecommitdiff
path: root/ham/aprx/doinst.sh
diff options
context:
space:
mode:
authorJK Wood <joshuakwood@gmail.com>2014-07-23 07:58:31 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-23 07:58:31 +0700
commit56837f7a6b002042a0926e2b631b532bf6282f85 (patch)
tree3c066768e3a3536e9b470dc363d6726f0e9343c6 /ham/aprx/doinst.sh
parentd5f9d9675d355a89149c81217a06eb8a2389e830 (diff)
downloadslackbuilds-56837f7a6b002042a0926e2b631b532bf6282f85.tar.gz
ham/aprx: Added (APRS software package).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ham/aprx/doinst.sh')
-rw-r--r--ham/aprx/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/ham/aprx/doinst.sh b/ham/aprx/doinst.sh
new file mode 100644
index 0000000000..514791d8bb
--- /dev/null
+++ b/ham/aprx/doinst.sh
@@ -0,0 +1,16 @@
+
+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/aprx.conf.new
+config etc/rc.d/rc.aprx.new