summaryrefslogtreecommitdiff
path: root/desktop/ion/doinst.sh
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-28 20:27:01 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-09-29 17:17:40 -0500
commit6142ca91e20156c4f12575269986e8f8d03450cb (patch)
treeda4d4c668549fa175a52e3b8586aba56f363269a /desktop/ion/doinst.sh
parent3032ce580f99e781f534ffa6cad45bd039950b58 (diff)
downloadslackbuilds-6142ca91e20156c4f12575269986e8f8d03450cb.tar.gz
desktop/ion: Fixed (Don't clobber config files)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/ion/doinst.sh')
-rw-r--r--desktop/ion/doinst.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/desktop/ion/doinst.sh b/desktop/ion/doinst.sh
new file mode 100644
index 0000000000..8c8e2f2b22
--- /dev/null
+++ b/desktop/ion/doinst.sh
@@ -0,0 +1,37 @@
+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/ion3/look_ios.lua.new
+config etc/ion3/look_cleanios.lua.new
+config etc/ion3/cfg_kludges.lua.new
+config etc/ion3/look_greenlight.lua.new
+config etc/ion3/cfg_pwm.lua.new
+config etc/ion3/look_brownsteel.lua.new
+config etc/ion3/cfg_layouts.lua.new
+config etc/ion3/lookcommon_emboss.lua.new
+config etc/ion3/cfg_ion.lua.new
+config etc/ion3/lookcommon_clean.lua.new
+config etc/ion3/cfg_menu.lua.new
+config etc/ion3/look_newviolet.lua.new
+config etc/ion3/cfg_defaults.lua.new
+config etc/ion3/cfg_tiling.lua.new
+config etc/ion3/look_cleanviolet.lua.new
+config etc/ion3/cfg_statusbar.lua.new
+config etc/ion3/look_simpleblue.lua.new
+config etc/ion3/look_dusky.lua.new
+config etc/ion3/look_clean.lua.new
+config etc/ion3/cfg_ioncore.lua.new
+config etc/ion3/look_greyviolet.lua.new
+config etc/ion3/cfg_dock.lua.new
+config etc/ion3/cfg_sp.lua.new
+config etc/ion3/cfg_query.lua.new