blob: 6737585c99f130df5f86f35ab8e2fe2d103fb4d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
post_install () {
sha256sum=$(sha256sum /usr/share/licenses/virtualbox-ext-oracle/PUEL| dd bs=1 count=64 2>/dev/null)
VBoxManage extpack install --accept-license=$sha256sum \
/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:
|