mirror of
git://slackware.nl/current.git
synced 2024-12-30 10:24:23 +01:00
d2e11a09b8
a/aaa_elflibs-15.0-x86_64-2.txz: Rebuilt. Upgraded libacl.so.1 and libattr.so.1. Added libaio.so.1 (needed by future versions of lvm). a/lvm2-2.02.177-x86_64-1.txz: Upgraded. Revert to the previous working version of lvm2. Based on the comments in the release notes for version 2.02.178, perhaps it would be prudent to sit out the next year and a half of planned instability. I can't recall ever _needing_ to upgrade LVM (the version number has been on 2.02.x for well over a decade)... let's avoid being beta testers as upstream refactors everything. isolinux/initrd.img: Rebuilt. Added libaio.so.1 (needed by future versions of lvm). usb-and-pxe-installers/usbboot.img: Rebuilt. Added libaio.so.1 (needed by future versions of lvm).
43 lines
1.2 KiB
Bash
43 lines
1.2 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...
|
|
}
|
|
|
|
preserve_perms() {
|
|
NEW="$1"
|
|
OLD="$(dirname ${NEW})/$(basename ${NEW} .new)"
|
|
if [ -e ${OLD} ]; then
|
|
cp -a ${OLD} ${NEW}.incoming
|
|
cat ${NEW} > ${NEW}.incoming
|
|
mv ${NEW}.incoming ${NEW}
|
|
fi
|
|
config ${NEW}
|
|
}
|
|
|
|
config etc/pulse/client.conf.new
|
|
config etc/pulse/daemon.conf.new
|
|
config etc/pulse/default.pa.new
|
|
config etc/pulse/system.pa.new
|
|
preserve_perms etc/rc.d/rc.pulseaudio.new
|
|
|
|
# Make sure the pulse user is in the audio group:
|
|
chroot . /usr/sbin/usermod -a -G audio pulse 1> /dev/null 2> /dev/null
|
|
|
|
# Make sure the root user is in the audio group:
|
|
chroot . /usr/sbin/usermod -a -G audio root 1> /dev/null 2> /dev/null
|
|
|
|
# Recompile glib schemas:
|
|
if [ -e usr/share/glib-2.0/schemas ]; then
|
|
if [ -x /usr/bin/glib-compile-schemas ]; then
|
|
/usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
|
|
fi
|
|
fi
|
|
|