summaryrefslogtreecommitdiffstats
path: root/debian/virtualbox-guest-x11.prerm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/virtualbox-guest-x11.prerm16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/virtualbox-guest-x11.prerm b/debian/virtualbox-guest-x11.prerm
new file mode 100644
index 00000000..d1ec4419
--- /dev/null
+++ b/debian/virtualbox-guest-x11.prerm
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+ARCH=`dpkg --print-architecture`
+
+case "$1" in
+ remove)
+ update-alternatives --remove x86_64-linux-gnu_gl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf
+ update-alternatives --remove x86_64-linux-gnu_egl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf
+ update-alternatives --remove i386-linux-gnu_gl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf
+ update-alternatives --remove i386-linux-gnu_egl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf
+ ldconfig
+ ;;
+
+esac
+##DEBHELPER##