postinst is in jockey-common 0.9.7-0ubuntu7.
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 27 28 29 30 31 32 33 34 35 | #!/bin/sh -e
if [ "$1" = configure ] || [ "$1" = reconfigure ]; then
if getent group sudo > /dev/null 2>&1; then
chown root:sudo /var/cache/jockey
chmod 3775 /var/cache/jockey
fi
if dpkg --compare-versions "$2" lt-nl "0.3"; then
# format changed between 0.2 and 0.3
rm -f /var/cache/jockey/check
fi
# clean up after restricted-manager->jockey package transition
if dpkg --compare-versions "$2" lt "0.3.3-0ubuntu3"; then
rm -f /etc/xdg/autostart/restricted-manager.desktop
fi
# modutils recently introduced .conf suffix requirement
if dpkg --compare-versions "$2" lt-nl "0.5-0ubuntu3"; then
for f in /etc/modprobe.d/blacklist-bcm43 /etc/modprobe.d/blacklist-local; do
if [ -e "$f" ] && [ ! -e "$f.conf" ]; then
mv "$f" "$f.conf"
fi
done
fi
fi
# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
pycompile -p jockey-common
fi
# End automatically added section
|