Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-release > by-pkgid > 056ac427232536d8007c285f3ff5046a > scriptlet

x11-server-common-1.19.3-3.mga6.x86_64.rpm

POSTIN

/bin/sh
/usr/sbin/update-alternatives \
	--install /etc/ld.so.conf.d/GL.conf gl_conf /etc/ld.so.conf.d/GL/standard.conf 500

# (anssi)

POSTUN

/bin/sh
if [ ! -f /etc/ld.so.conf.d/GL/standard.conf ]; then
	/usr/sbin/update-alternatives --remove gl_conf /etc/ld.so.conf.d/GL/standard.conf
fi

Triggers

x11-server-common < 1.3.0.0-17

/bin/sh
[ $1 -eq 2 ] || exit 0 # do not run if downgrading
current_glconf="$(readlink -e /etc/ld.so.conf.d/GL.conf)"
if [ "${current_glconf#*mesa}" == "gl1.conf" ]; then
	# This an upgrade of a system with no proprietary drivers enabled, update
	# the link to point to the new standard.conf instead of libmesagl1.conf (2008.0 change).
	/usr/sbin/update-alternatives --set gl_conf /etc/ld.so.conf.d/GL/standard.conf
else
	# XFdrake did not set symlink to manual mode before 2008.0, so we ensure it here.
	/usr/sbin/update-alternatives --set gl_conf "${current_glconf}"
fi
true