postinst is in android-tools-adb 4.2.2+git20130218-3ubuntu23.
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 | #!/bin/sh
set -e
# Old udev rules were marking all /dev entries as "uaccess" meaning
# that the current active user could write to any entry.
# A reboot is required to make sure all the permissions are set to
# a sane value again.
if dpkg --compare-versions "$2" lt 4.2.2+git20130218-3ubuntu15 && \
[ -x /usr/share/update-notifier/notify-reboot-required ]
then
/usr/share/update-notifier/notify-reboot-required || :
fi
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
if [ -e "/etc/udev/rules.d/70_android-tools-adb.rules" ]; then
echo "Preserving user changes to /etc/udev/rules.d/70-android-tools-adb.rules ..."
if [ -e "/etc/udev/rules.d/70-android-tools-adb.rules" ]; then
mv -f "/etc/udev/rules.d/70-android-tools-adb.rules" "/etc/udev/rules.d/70-android-tools-adb.rules.dpkg-new"
fi
mv -f "/etc/udev/rules.d/70_android-tools-adb.rules" "/etc/udev/rules.d/70-android-tools-adb.rules"
fi
fi
# End automatically added section
exit 0
|