summaryrefslogtreecommitdiffstats
path: root/debian/virtualbox-guest-x11.postinst
blob: 9133ec85667b523f107d8d328336afeffd3344c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh

set -e

#ARCH=`dpkg --print-architecture`

#if [ "$1" = "configure" ]; then
#
#        if [ "$ARCH" = "amd64" ]; then
#            update-alternatives --force \
#                --install /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf x86_64-linux-gnu_gl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf 8605
#
#            update-alternatives --force \
#               --install /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf x86_64-linux-gnu_egl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf 8605
#        else
#            update-alternatives --force \
#               --install /etc/ld.so.conf.d/i386-linux-gnu_GL.conf i386-linux-gnu_gl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf 8605
#
#            update-alternatives --force \
#               --install /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf i386-linux-gnu_egl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf 8605
#        fi
#
#	ldconfig
#fi

#DEBHELPER#

# remove stale virtualbox-guest-x11 links
case "$1" in
  configure)
    if dpkg --compare-versions "$2" lt "5.0.12-dfsg-2~" ; then
      update-rc.d -f virtualbox-guest-x11 remove > /dev/null || true
    fi
  ;;
esac