summaryrefslogtreecommitdiff
path: root/debian/virtualbox-guest-utils.postinst
blob: 8cd836c09278d7f277fadcf7ad9843fe0e6c6660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

if [ "$1" = configure ] && [ -n "$2" ] && \
   [ -x /usr/share/update-notifier/notify-reboot-required ] && \
   pidof VBoxService > /dev/null;
then
	/usr/share/update-notifier/notify-reboot-required || true
fi

if [ "$1" = configure ] && [ -z `getent group vboxsf` ]; then
	addgroup --system --quiet vboxsf
fi

if [ x`uname` = xSunOS ]; then
    # SMF services will start and need drivers:
    dpkg-trigger devfsadm || true
    # No need to wait for boot archive update:
    dpkg-trigger --no-await boot-archive || true
fi

#DEBHELPER#