source: build-files/ports-overlay/misc/pcbsd-meta-virtualboxguest/pkg-install @ b7e4d1e

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since b7e4d1e was b7e4d1e, checked in by Kris Moore <kris@…>, 18 months ago

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

  • Property mode set to 100644
File size: 497 bytes
Line 
1#!/bin/sh
2
3PREFIX=${PKG_PREFIX-/usr/local}
4
5if [ "$2" != "POST-INSTALL" ] ; then
6   exit 0
7fi
8
9# Enable loading the vboxguest binary driver
10grep '^vboxguest_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
11if [ $? -ne 0 ] ; then
12        echo 'vboxguest_load="YES"' >>/boot/loader.conf
13fi
14# Enable loading the vboxvideo binary driver
15grep '^vboxvideo_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
16if [ $? -ne 0 ] ; then
17        echo 'vboxvideo_load="YES"' >>/boot/loader.conf
18fi
19
20exit 0
Note: See TracBrowser for help on using the repository browser.