summaryrefslogtreecommitdiff
path: root/network/comgt/doinst.sh
diff options
context:
space:
mode:
authorZbigniew Baniewski <zb@ispid.com.pl>2011-01-08 17:34:39 -0200
committerRobby Workman <rworkman@slackbuilds.org>2011-01-10 15:04:24 -0600
commitac0b70909acb3010cfd77f03aaeb842dc9e9a68e (patch)
tree6dbd07099ff729abcb663b9b8895dc9ca2fc2f5c /network/comgt/doinst.sh
parent56707bf14ab16457b0292c549061ad3903b5b81d (diff)
downloadslackbuilds-ac0b70909acb3010cfd77f03aaeb842dc9e9a68e.tar.gz
network/comgt: Added (3G/GPRS datacard management utility)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'network/comgt/doinst.sh')
-rw-r--r--network/comgt/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/network/comgt/doinst.sh b/network/comgt/doinst.sh
new file mode 100644
index 0000000000..b3c6dabacc
--- /dev/null
+++ b/network/comgt/doinst.sh
@@ -0,0 +1,18 @@
+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/comgt/command.new
+config etc/comgt/dump.new
+config etc/comgt/operator.new
+config etc/comgt/sigmon.new
+