Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Make sure we load vboxguest / vboxvideo when installing PC-BSD
Browse files Browse the repository at this point in the history
VirtualBox extensions
  • Loading branch information
Kris Moore committed Jun 26, 2013
1 parent 477e6f1 commit b7e4d1e
Showing 1 changed file with 20 additions and 0 deletions.
@@ -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.