Ticket #629: virtualbox.diff

File virtualbox.diff, 1.4 KB (added by dannomac, 21 months ago)

Patch to automatically load the virtualbox guest kernel module

  • build-files/metapkgsets/pcbsd/pkgset/VirtualBoxGuest/post-install.sh

     
    99if [ $? -ne 0 ] ; then 
    1010        echo 'vboxservice_enable="YES"' >>/etc/rc.conf 
    1111fi 
     12grep '^vboxguest_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null 
     13if [ $? -ne 0 ] ; then 
     14        echo 'vboxguest_load="YES"' >>/boot/loader.conf 
     15fi 
  • build-files/metapkgsets/pcbsd/pkgset/VirtualBoxGuest/post-remove.sh

     
    11#!/bin/sh 
    22 
    3 # Enable loading the vboxguest binary driver 
     3# Disable loading the vboxguest binary driver 
    44grep '^vboxguest_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null 
    55if [ $? -eq 0 ] ; then 
    66        sed -i .bak '/vboxguest_enable="YES"/d' /etc/rc.conf 
     
    99if [ $? -eq 0 ] ; then 
    1010        sed -i .bak '/vboxservice_enable="YES"/d' /etc/rc.conf 
    1111fi 
     12grep '^vboxguest_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null 
     13if [ $? -eq 0 ] ; then 
     14        sed -i .bak '/vboxguest_load="YES"/d' /boot/loader.conf 
     15fi