mirror of
git://slackware.nl/current.git
synced 2024-12-26 09:58:59 +01:00
1097672bbe
a/kernel-firmware-20200715_69c7f0b-noarch-1.txz: Upgraded. ap/soma-3.3.5-noarch-1.txz: Upgraded. Thanks to David Woodfall. d/cmake-3.18.0-x86_64-1.txz: Upgraded. l/libzip-1.7.3-x86_64-1.txz: Upgraded.
19 lines
545 B
Bash
19 lines
545 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 etc/soma/stations.conf.new
|
|
config etc/soma/options.conf.new
|
|
|
|
if [ -x /usr/bin/update-desktop-database ]; then
|
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
|
fi
|