diff options
author | Michael Wagner <lapinours@web.de> | 2010-05-11 15:01:29 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 15:01:29 +0200 |
commit | bcee618ad63ed2a4a212fb8dfa9030d4b8a3c0cd (patch) | |
tree | 64f3d50a6d4e8e5dc968c1d98169eae357557e7c /network/kazehakase/doinst.sh | |
parent | 18025e4903d384578f2272e5dab27963228d25da (diff) | |
download | slackbuilds-bcee618ad63ed2a4a212fb8dfa9030d4b8a3c0cd.tar.gz |
network/kazehakase: Initial import
Diffstat (limited to 'network/kazehakase/doinst.sh')
-rw-r--r-- | network/kazehakase/doinst.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/network/kazehakase/doinst.sh b/network/kazehakase/doinst.sh new file mode 100644 index 0000000000..3f17567532 --- /dev/null +++ b/network/kazehakase/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/kazehakase/kzrc.new +config etc/kazehakase/proxyrc.new + +if [ -x usr/bin/update-desktop-database ]; then + usr/bin/update-desktop-database -q usr/share/applications +fi |