summaryrefslogtreecommitdiff
path: root/community/virtualbox/virtualbox.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-09 23:14:53 +0000
committerroot <root@rshg054.dnsready.net>2011-11-09 23:14:53 +0000
commit7b0cdd65ac7bcd3c7597b528a10de58e4e0a430f (patch)
tree94f5e5e8ba53712358886d7a29554a7c5d624563 /community/virtualbox/virtualbox.install
parentddba9670c1518d9b420db6a6dca01a4a4a4136c7 (diff)
Wed Nov 9 23:14:53 UTC 2011
Diffstat (limited to 'community/virtualbox/virtualbox.install')
-rw-r--r--community/virtualbox/virtualbox.install31
1 files changed, 7 insertions, 24 deletions
diff --git a/community/virtualbox/virtualbox.install b/community/virtualbox/virtualbox.install
index 0eac014f2..c794b857d 100644
--- a/community/virtualbox/virtualbox.install
+++ b/community/virtualbox/virtualbox.install
@@ -14,35 +14,18 @@ utils() {
post_install() {
getent group vboxusers >> /dev/null || usr/sbin/groupadd -g 108 vboxusers
- /bin/cat << EOF
-
-===> In order to run VirtualBox, you have to be in the 'vboxusers' group.
-===>
-===> If you want to be able to install guest additions, you have to install
-===> 'virtualbox-additions' package.
-===>
-===> You must load vboxdrv module before starting VirtualBox:
-===> # modprobe vboxdrv
-===>
-===> For networking you must load vboxnetflt or vboxnetadp.
-===>
-===> For PCI passthrough support load vboxpci module.
-===>
-===> To load it automatically, add vboxdrv module
-===> to the MODULES array in /etc/rc.conf.
-
-*** To compile the modules do /usr/bin/vboxbuild ***
-
-EOF
- utils
+ utils
}
post_upgrade() {
getent group vboxusers >> /dev/null || usr/sbin/groupadd -g 108 vboxusers
- /bin/cat << EOF
-*** To recompile the modules do /usr/bin/vboxbuild ***
+ utils
+ if [ "$(vercmp $2 4.1.6-1)" -lt 0 ]; then
+/bin/cat << EOF
+===> Starting with virtualbox version 4.1.6-1, kernel modules handling is done by virtualbox-modules.
+===> Use virtualbox-source package if you don't use our stock linux package.
EOF
- utils
+ fi
}
post_remove() {