Permalink
Browse files

Make sure we load vboxguest / vboxvideo when installing PC-BSD

VirtualBox extensions
  • Loading branch information...
1 parent 477e6f1 commit b7e4d1e13cd3b07d690f933721f6d656d537c1d0 @kmoore134 kmoore134 committed Jun 26, 2013
Showing with 20 additions and 0 deletions.
  1. +20 −0 build-files/ports-overlay/misc/pcbsd-meta-virtualboxguest/pkg-install
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+PREFIX=${PKG_PREFIX-/usr/local}
+
+if [ "$2" != "POST-INSTALL" ] ; then
+ exit 0
+fi
+
+# Enable loading the vboxguest binary driver
+grep '^vboxguest_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vboxguest_load="YES"' >>/boot/loader.conf
+fi
+# Enable loading the vboxvideo binary driver
+grep '^vboxvideo_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vboxvideo_load="YES"' >>/boot/loader.conf
+fi
+
+exit 0

0 comments on commit b7e4d1e

Please sign in to comment.