postinst is in bluez 4.98-2ubuntu7.
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #!/bin/sh
set -e
case "$1" in
configure)
if [ -e /etc/init.d/bluez-utils ]; then
update-rc.d -f bluez-utils remove
# maybe a (medium/low debconf?) notice is best suited here
fi
# use MAKEDEV instead of the original bluez script below as per policy 10.6
if [ -x /dev/MAKEDEV ]; then
echo "Creating device nodes ..."
cd /dev && ./MAKEDEV bluetooth 1>/dev/null 2>/dev/null
fi
# create bluetooth group if not already present
if ! getent group bluetooth > /dev/null; then
addgroup --quiet --system bluetooth
fi
# reload dbus config file
if [ -x /etc/init.d/dbus ]; then
invoke-rc.d dbus force-reload || true
fi
#reload udev rules
if [ -x /etc/init.d/udev ]; then
invoke-rc.d udev reload || true
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
# Automatically added by dh_installinit
if [ -e "/etc/init/bluetooth.conf" ]; then
invoke-rc.d bluetooth start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f bluetooth remove >/dev/null || exit $?
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/default/bluetooth 4.98-2ubuntu4 -- "$@"
# End automatically added section
|