
| Current Path : /var/lib/dpkg/info/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/lib/dpkg/info/virtualbox.postinst |
#!/bin/sh set -e # Automatically added by dh_python3: if which py3compile >/dev/null 2>&1; then py3compile -p virtualbox fi if which pypy3compile >/dev/null 2>&1; then pypy3compile -p virtualbox || true fi if which py3compile >/dev/null 2>&1; then py3compile -p virtualbox /usr/lib/virtualbox -V 3.8 fi if which pypy3compile >/dev/null 2>&1; then pypy3compile -p virtualbox /usr/lib/virtualbox -V 3.8 || true fi # End automatically added section # Automatically added by dh_installinit/12.10ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -x "/etc/init.d/virtualbox" ]; then update-rc.d virtualbox defaults >/dev/null || exit 1 fi fi # End automatically added section if [ "$1" = configure ]; then if [ -z `getent group vboxusers` ]; then addgroup --system --quiet vboxusers fi # Build usb device tree for i in /sys/bus/usb/devices/*; do if test -r "$i/dev"; then dev="`cat "$i/dev" 2> /dev/null || true`" major="`expr "$dev" : '\(.*\):' 2> /dev/null || true`" minor="`expr "$dev" : '.*:\(.*\)' 2> /dev/null || true`" class="`cat $i/bDeviceClass 2> /dev/null || true`" /lib/udev/VBoxCreateUSBNode.sh "$major" "$minor" "$class" vboxusers 2>/dev/null || true fi done # only restart if VirtualBox isn't running if test -x /etc/init.d/virtualbox && ! pidof VBoxSVC > /dev/null; then invoke-rc.d virtualbox restart || true fi fi