mirror of
git://slackware.nl/current.git
synced 2024-12-30 10:24:23 +01:00
2407271ff3
ap/vim-8.2.3868-x86_64-1.txz: Upgraded. kde/breeze-icons-5.89.0-noarch-2.txz: Rebuilt. Applied upstream patches: [PATCH] improve installation of light fallback icons [PATCH] Include "*@*" in the icon_files list for installation Thanks to Heinz Wiesinger. l/gtk+3-3.24.31-x86_64-1.txz: Upgraded. l/zstd-1.5.1-x86_64-1.txz: Upgraded. n/net-snmp-5.9.1-x86_64-4.txz: Rebuilt. Moved options for snmpd from rc.snmpd to /etc/default/snmpd. Thanks to Jakub 'shasta' Jankowski. xap/vim-gvim-8.2.3868-x86_64-1.txz: Upgraded.
24 lines
689 B
Bash
24 lines
689 B
Bash
#!/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...
|
|
}
|
|
|
|
# Keep same perms on rc.snmpd.new:
|
|
if [ -e etc/rc.d/rc.snmpd ]; then
|
|
cp -a etc/rc.d/rc.snmpd etc/rc.d/rc.snmpd.new.incoming
|
|
cat etc/rc.d/rc.snmpd.new > etc/rc.d/rc.snmpd.new.incoming
|
|
mv etc/rc.d/rc.snmpd.new.incoming etc/rc.d/rc.snmpd.new
|
|
fi
|
|
|
|
config etc/snmp/snmpd.conf.new
|
|
config etc/rc.d/rc.snmpd.new
|
|
config etc/default/snmpd.new
|
|
|