source: build-files/ports-overlay/misc/pcbsd-base/pkg-install @ a5c5b5e

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

Add pkg-install to pcbsd-base, which will add virtualbox kernel modules
to startup

  • Property mode set to 100644
File size: 478 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 virtualbox kernel modules
10grep '^vboxdrv_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
11if [ $? -ne 0 ] ; then
12        echo 'vboxdrv_load="YES"' >>/boot/loader.conf
13fi
14
15# Enable loading the vboxnet drivers
16grep '^vboxnet_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
17if [ $? -ne 0 ] ; then
18        echo 'vboxnet_enable="YES"' >>/etc/rc.conf
19fi
20
21exit 0
Note: See TracBrowser for help on using the repository browser.