diff options
author | Vincent Batts <vbatts@batts.mine.nu> | 2010-05-11 22:55:05 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 22:55:05 +0200 |
commit | 6bcbf9f38260f529b65261f04b6cdf3ca74e2b55 (patch) | |
tree | 739c6ee4ca05e36d5048b13f7b66de69b3a7bdb6 /network/wvdial/doinst.sh | |
parent | 17e3df9f9a2d7f28d2dc16098e2b4e6bf779a405 (diff) | |
download | slackbuilds-6bcbf9f38260f529b65261f04b6cdf3ca74e2b55.tar.gz |
network/wvdial: Added to 12.1 repository
Diffstat (limited to 'network/wvdial/doinst.sh')
-rw-r--r-- | network/wvdial/doinst.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/network/wvdial/doinst.sh b/network/wvdial/doinst.sh new file mode 100644 index 0000000000..2a50656fa9 --- /dev/null +++ b/network/wvdial/doinst.sh @@ -0,0 +1,17 @@ +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/wvdial.conf.new +config etc/ppp/peers/wvdial-pipe.new +config etc/ppp/peers/wvdial.new + |