slackbuilds_ponce/games/firestorm-opensim/doinst.sh
Martin Rogge 28b171c7eb games/firestorm-opensim: Added (an alternative Second Life client)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2013-06-29 16:12:53 -03:00

15 lines
499 B
Bash

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 opt/firestorm-opensim/firestorm.new
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database 1> /dev/null &> /dev/null
fi