summaryrefslogtreecommitdiff
path: root/system/dosemu/doinst.sh
diff options
context:
space:
mode:
authorMartin Lefebvre <dadexter@sekurity.com>2010-05-11 20:01:57 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:01:57 +0200
commitafd43d4f79054b4f2be691f970bb7e3ae59713c5 (patch)
treef28af7f7415535254b9b5fd3cc55c3ce42ffff7f /system/dosemu/doinst.sh
parente46a810f99d5560921f4b5eb2ee0cb8429cc5001 (diff)
downloadslackbuilds-afd43d4f79054b4f2be691f970bb7e3ae59713c5.tar.gz
system/dosemu: Added to 12.0 repository
Diffstat (limited to 'system/dosemu/doinst.sh')
-rw-r--r--system/dosemu/doinst.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/system/dosemu/doinst.sh b/system/dosemu/doinst.sh
new file mode 100644
index 0000000000..a525f4b87c
--- /dev/null
+++ b/system/dosemu/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/dosemu.conf.new
+config etc/global.conf.new
+config etc/dosemu.users.new
+