summaryrefslogtreecommitdiff
path: root/libre/virtualbox-libre/virtualbox-libre-ext-vnc.install
blob: 828a16a1df552728c9aa2b2d4832c64e1b02a0d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#/bin/sh

# arg 1:  the new package version
post_install() {
  VBoxManage extpack install "/usr/share/virtualbox/extensions/VNC-${1%%-*}.vbox-extpack" >/dev/null
}

# arg 1:  the new package version
# arg 2:  the old package version
pre_upgrade() {
  pre_remove "$2"
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  post_install "$1"
}

# arg 1:  the old package version
pre_remove() {
  VBoxManage extpack uninstall 'VNC' >/dev/null
}

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