mirror of
git://slackware.nl/current.git
synced 2024-12-29 10:25:00 +01:00
b38f92681d
ap/slackpkg-15.0.8-noarch-1.txz: Upgraded. Author: piterpunk <piterpunk@slackware.com> To make it easier to do an unattended slackpkg update/upgrade process, this commit provides different exit codes for many situations: 0 Successful slackpkg execution. 1 Something wrong happened. 20 No package found to be downloaded, installed, reinstalled, upgraded, or removed. 50 Slackpkg itself was upgraded and you need to re-run it. 100 There are pending updates. Code and the main manpage are updated accordingly. In addition, this commit also: - removes the ChangeLog.txt in doinst.sh, so the needed 'slackpkg update' after Slackpkg upgrade won't say it's all OK and doesn't need to redo the package lists - removes AUTHORS from manpage. Nowadays there is code from many people in Slackpkg and it seems a bit unfair to have only my and Evaldo's name listed there. Signed-off-by: Robby Workman <rworkman@slackware.com> d/meson-0.60.0-x86_64-1.txz: Upgraded. l/ffmpeg-4.4.1-x86_64-1.txz: Upgraded. l/imagemagick-7.1.0_11-x86_64-1.txz: Upgraded. l/libcap-2.60-x86_64-1.txz: Upgraded. l/libsoup-2.74.1-x86_64-1.txz: Upgraded. l/sip-4.19.25-x86_64-3.txz: Rebuilt. Drop the Qt4 modules. Thanks to gmgf. n/dhcpcd-9.4.1-x86_64-1.txz: Upgraded. testing/packages/linux-5.14.x/kernel-generic-5.14.14-x86_64-3.txz: Rebuilt. testing/packages/linux-5.14.x/kernel-headers-5.14.14-x86-3.txz: Rebuilt. testing/packages/linux-5.14.x/kernel-huge-5.14.14-x86_64-3.txz: Rebuilt. testing/packages/linux-5.14.x/kernel-modules-5.14.14-x86_64-3.txz: Rebuilt. testing/packages/linux-5.14.x/kernel-source-5.14.14-noarch-3.txz: Rebuilt. Let's enable SCHED_AUTOGROUP, which should improve desktop latency under a heavy CPU load while being mostly inert on servers. It may be disabled at boot time with a "noautogroup" kernel parameter, or at runtime like this: echo 0 > /proc/sys/kernel/sched_autogroup_enabled Thanks to gbschenkel. SCHED_AUTOGROUP n -> y
44 lines
1 KiB
Bash
44 lines
1 KiB
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...
|
|
}
|
|
|
|
copy_mirror_file() {
|
|
ARCH=$(uname -m)
|
|
case $ARCH in
|
|
i386|i486|i586|i686)
|
|
SRCMIRROR=mirrors-x86.sample
|
|
;;
|
|
x86-64|x86_64|X86-64|X86_64)
|
|
SRCMIRROR=mirrors-x86_64.sample
|
|
;;
|
|
s390)
|
|
SRCMIRROR=mirrors-s390.sample
|
|
;;
|
|
arm*)
|
|
SRCMIRROR=mirrors-arm.sample
|
|
;;
|
|
aarch64)
|
|
SRCMIRROR=mirrors-aarch64.sample
|
|
;;
|
|
*)
|
|
SRCMIRROR=mirrors-x86.sample
|
|
;;
|
|
esac
|
|
cp usr/doc/slackpkg-@VERSION@/$SRCMIRROR etc/slackpkg/mirrors.new
|
|
}
|
|
|
|
copy_mirror_file
|
|
config etc/slackpkg/mirrors.new
|
|
config etc/slackpkg/slackpkg.conf.new
|
|
config etc/slackpkg/blacklist.new
|
|
rm -f var/lib/slackpkg/ChangeLog.txt
|
|
rm -f var/lib/slackpkg/pkglist
|
|
rm -f var/lib/slackpkg/CHECKSUMS.md5*
|