summaryrefslogtreecommitdiff
path: root/community-testing/virtualbox-modules/virtualbox-modules.install
blob: 188c1874cac6e7f2d4771369d6750b1f0f4ab7a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
/bin/cat << EOF
===> You must load vboxdrv module before starting VirtualBox:
===> # modprobe vboxdrv
EOF
    EXTRAMODULES='extramodules-3.1-ARCH'
    depmod $(cat /lib/modules/$EXTRAMODULES/version)
}

post_upgrade() {
    EXTRAMODULES='extramodules-3.1-ARCH'
    depmod $(cat /lib/modules/$EXTRAMODULES/version)
    rmmod vboxdrv || echo 'In order to use the new version, reload all virtualbox modules manually.'
}

post_remove() {
    EXTRAMODULES='extramodules-3.1-ARCH'
    depmod $(cat /lib/modules/$EXTRAMODULES/version)
}