2009-08-26 17:00:38 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
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...
|
|
|
|
}
|
|
|
|
|
2020-02-07 23:32:38 +01:00
|
|
|
config etc/kde/kdm/backgroundrc.new
|
|
|
|
config etc/kde/kdm/kdmrc.new
|
|
|
|
if [ -r etc/pam.d/kde.new ]; then
|
|
|
|
config etc/pam.d/kde.new
|
|
|
|
fi
|
2020-05-19 01:30:26 +02:00
|
|
|
if [ -r etc/pam.d/kde-np.new ]; then
|
|
|
|
config etc/pam.d/kde-np.new
|
|
|
|
fi
|
2020-02-07 23:32:38 +01:00
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
if [ -x usr/bin/update-desktop-database ]; then
|
|
|
|
usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -x usr/bin/update-mime-database ]; then
|
|
|
|
usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
|
|
|
|
fi
|