postinst is in open-vm-tools 2:9.4.0-1280544-5ubuntu6.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
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 26 | #!/bin/sh
set -e
# Automatically added by dh_installinit
if [ -x "/etc/init.d/open-vm-tools" ] || [ -e "/etc/init/open-vm-tools.conf" ]; then
if [ ! -e "/etc/init/open-vm-tools.conf" ]; then
update-rc.d open-vm-tools start 38 2 3 4 5 . stop 38 0 1 6 . >/dev/null
fi
invoke-rc.d open-vm-tools start || exit $?
fi
# End automatically added section
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
if [ -e "/etc/udev/rules.d/z60_open-vm-tools.rules" ]; then
echo "Preserving user changes to /etc/udev/rules.d/40-open-vm-tools.rules ..."
if [ -e "/etc/udev/rules.d/40-open-vm-tools.rules" ]; then
mv -f "/etc/udev/rules.d/40-open-vm-tools.rules" "/etc/udev/rules.d/40-open-vm-tools.rules.dpkg-new"
fi
mv -f "/etc/udev/rules.d/z60_open-vm-tools.rules" "/etc/udev/rules.d/40-open-vm-tools.rules"
fi
fi
# End automatically added section
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
ldconfig
fi
# End automatically added section
|