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

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

Load drm module before vboxvideo

  • Property mode set to 100644
File size: 682 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 '^drm_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
11if [ $? -ne 0 ] ; then
12        echo 'drm_load="YES"' >>/boot/loader.conf
13fi
14# Enable loading the vboxguest binary driver
15grep '^vboxguest_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
16if [ $? -ne 0 ] ; then
17        echo 'vboxguest_load="YES"' >>/boot/loader.conf
18fi
19# Enable loading the vboxvideo binary driver
20grep '^vboxvideo_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
21if [ $? -ne 0 ] ; then
22        echo 'vboxvideo_load="YES"' >>/boot/loader.conf
23fi
24
25exit 0
Note: See TracBrowser for help on using the repository browser.