summaryrefslogtreecommitdiffstats
path: root/source/a/procps-ng/doinst.sh
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2024-01-09 01:52:43 +0000
committer Eric Hameleers <alien@slackware.com>2024-01-09 03:31:52 +0100
commit09504fc48447542878036d98e868b525789c7bc6 (patch)
tree365d93793ee4dcd6b33f7e3c5b712c96ed5dc72b /source/a/procps-ng/doinst.sh
parent360a12d5d90dc285bebff21b774cea64dffe1ca4 (diff)
downloadcurrent-09504fc48447542878036d98e868b525789c7bc6.tar.gz
current-09504fc48447542878036d98e868b525789c7bc6.tar.xz
Tue Jan 9 01:52:43 UTC 202420240109015243
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.
Diffstat (limited to 'source/a/procps-ng/doinst.sh')
-rw-r--r--source/a/procps-ng/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/a/procps-ng/doinst.sh b/source/a/procps-ng/doinst.sh
new file mode 100644
index 000000000..b93b9726b
--- /dev/null
+++ b/source/a/procps-ng/doinst.sh
@@ -0,0 +1,16 @@
+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