#!/bin/sh

DISTRIBUTION="${distribution}"

case "$1" in
	install)
		modprobe -q mali || true
		which udevadm > /dev/null && udevadm trigger --action=add --sysname-match=mali || true
		;;

	configure)
		[ "Ubuntu" = "$DISTRIBUTION" ] && update-alternatives --force --install /etc/ld.so.conf.d/${DEB_HOST_MULTIARCH}_EGL.conf \
			${DEB_HOST_MULTIARCH}_egl_conf /usr/lib/${DEB_HOST_MULTIARCH}/${private_dir}/ld.so.conf 600
		LDCONFIG_NOTRIGGER=y ldconfig
esac

#DEBHELPER#

exit 0
