summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoel Brook2016-03-11 17:24:53 +0100
committerRoel Brook2016-03-11 17:24:53 +0100
commit7e52ec09507752762102be04e71764a92725d355 (patch)
treefed152a404cdec7e1842d4462a7bd7717cdcef77
parent587fb58a8879f9eb0660bdbb7b3ae0b8d0d8b3d3 (diff)
downloadaur-7e52ec09507752762102be04e71764a92725d355.tar.gz
Version bump. Modules were no longer autoloaded on boot. Added /etc/modules-load.d/virtualbox.conf to ensure modules are automatically loaded.
-rw-r--r--PKGBUILD15
1 files changed, 14 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 635da1f2f3e..e42137a45d5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=virtualbox-bin
pkgver=5.0.16
_build=105871
-pkgrel=1
+pkgrel=2
pkgdesc='Oracle VM VirtualBox Binary Edition (Oracle branded non-OSE version)'
arch=('i686' 'x86_64')
url='http://virtualbox.org/'
@@ -149,6 +149,19 @@ INSTALL_VER='$pkgver'
INSTALL_REV='$_build'
EOF
+ # Write modules-load.d configuration to ensure that modules are loaded at boot
+ install -D -m 0644 /dev/null "$pkgdir/etc/modules-load.d/virtualbox.conf"
+ cat > "$pkgdir/etc/modules-load.d/virtualbox.conf" <<EOF
+# Load virtualbox kernel modules at boot.
+# This file was installed by the virtualbox-bin AUR package
+
+# Base module
+vboxdrv
+
+# Host-based network
+vboxnetadp
+EOF
+
# Register into DKMS
install -dm 755 "$pkgdir/var/lib/dkms/vboxhost/$pkgver"
ln -s '/opt/VirtualBox/src/vboxhost' "$pkgdir/var/lib/dkms/vboxhost/$pkgver/source"