mirror of
git://slackware.nl/current.git
synced 2024-12-29 10:25:00 +01:00
b5ea33bed6
a/efibootmgr-16-x86_64-2.txz: Rebuilt. a/efivar-35-x86_64-1.txz: Upgraded. Switch to efivar-35, since 36 seems to have problems. Thanks to _RDS_. ap/slackpkg-2.83.0-noarch-3.txz: Rebuilt. Don't remove ChangeLog.txt upon upgrade/reinstall. Use CHECKSUMS.md5.asc to determine if ChangeLog.txt is unchanged. Remove dead bjtu.edu.cn mirrors from the sample mirrors files. isolinux/initrd.img: Rebuilt. Include libefivar.so.1 on the installer (needed by efibootmgr). usb-and-pxe-installers/usbboot.img: Rebuilt. Include libefivar.so.1 on the installer (needed by efibootmgr).
39 lines
929 B
Bash
39 lines
929 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...
|
|
}
|
|
|
|
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
|
|
;;
|
|
*)
|
|
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/pkglist
|