summaryrefslogtreecommitdiff
path: root/virtualbox-ext-oracle/virtualbox-ext-oracle.install
blob: 4d73726550f01133bed6c5f77f71b5e36b26dce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install () {
  VBoxManage extpack install --accept-license="$(sha256sum /usr/share/licenses/virtualbox-ext-oracle/PUEL | head --bytes=64)" "/usr/share/virtualbox/extensions/Oracle_VM_VirtualBox_Extension_Pack-${1%%-*}.vbox-extpack" >/dev/null
}

pre_upgrade() {
  post_remove "$@"
}

post_upgrade() {
  post_install "$@"
}

post_remove() {
  VBoxManage extpack uninstall 'Oracle VM VirtualBox Extension Pack' >/dev/null
}

# vim:set ts=2 sw=2 ft=sh et: