diff options
Diffstat (limited to '')
-rw-r--r-- | debian/virtualbox-guest-x11.postinst | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/virtualbox-guest-x11.postinst b/debian/virtualbox-guest-x11.postinst new file mode 100644 index 00000000..9133ec85 --- /dev/null +++ b/debian/virtualbox-guest-x11.postinst @@ -0,0 +1,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 + |