2013-12-05 17:08:53 +01:00
|
|
|
config() {
|
|
|
|
NEW="$1"
|
|
|
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
|
|
|
if [ ! -r $OLD ]; then
|
|
|
|
mv $NEW $OLD
|
|
|
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
|
|
|
rm $NEW
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-02-18 01:26:40 +01:00
|
|
|
for conf in /opt/fgo/data/config/*.new ; do
|
2014-03-14 10:32:47 +01:00
|
|
|
config ${conf}
|
2013-12-05 17:08:53 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
if [ -x /usr/bin/update-desktop-database ]; then
|
|
|
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
|
|
|
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
2017-01-09 13:46:45 +01:00
|
|
|
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
|
2013-12-05 17:08:53 +01:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|