Imported Debian patch 0.1.0+git20131207+e452e83-0ubuntu12
[deb_libhybris.git] / debian / libhybris.postinst.in
1 #!/bin/sh
2 # Copyright (C) 2007 Mario Limonciello
3 # Copyright (C) 2009-2011 Canonical Ltd.
4
5 set -e
6
7 PACKAGE_NAME=#DRIVERNAME#
8 ARCH=`dpkg --print-architecture`
9
10 if [ "$1" = "configure" ]; then
11
12 update-alternatives --force \
13 --install /#SYSCONFDIR#/ld.so.conf.d/#DEB_HOST_MULTIARCH#_EGL.conf #DEB_HOST_MULTIARCH#_egl_conf /#LDSOCONF# #ALTPRIORITY#
14
15 # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with
16 # alternatives.
17 LDCONFIG_NOTRIGGER=y ldconfig
18
19 fi
20
21 #DEBHELPER#