slackware-current/source/a/procps-ng/doinst.sh
Patrick J Volkerding 09504fc484 Tue Jan 9 01:52:43 UTC 2024
a/procps-ng-3.3.17-x86_64-3.txz:  Rebuilt.
  Add /etc/default/sysctl to support custom options for sysctl in rc.S.
  Thanks to lostintime.
a/sysvinit-scripts-15.1-noarch-12.txz:  Rebuilt.
  rc.S: support /etc/default/sysctl for custom options.
  Thanks to lostintime.
l/imagemagick-7.1.1_26-x86_64-1.txz:  Upgraded.
l/qt5-5.15.12_20240103_b8fd1448-x86_64-1.txz:  Upgraded.
n/samba-4.19.4-x86_64-1.txz:  Upgraded.
x/imake-1.0.10-x86_64-1.txz:  Upgraded.
2024-01-09 03:31:52 +01:00

16 lines
433 B
Bash

config() {
for infile in $1; do
NEW="$infile"
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...
done
}
config etc/default/sysctl.new