postinst is in bootlogd 2.88dsf-41ubuntu6.
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 | #!/bin/sh
set -e
if [ -x /etc/init.d/bootlogd ]; then
update-rc.d bootlogd start 05 S . >/dev/null || exit $?
fi
if [ -x /etc/init.d/stop-bootlogd-single ]; then
update-rc.d stop-bootlogd-single start 99 S . >/dev/null || exit $?
fi
if [ -x /etc/init.d/stop-bootlogd ]; then
update-rc.d stop-bootlogd start 99 2 3 4 5 . >/dev/null || exit $?
fi
#
# Create initial log files
#
for F in /var/log/boot
do
if [ ! -f "$F" ] && touch "$F" >/dev/null 2>&1
then
echo "(Nothing has been logged yet.)" >| "$F"
chown root:adm "$F"
chmod 640 "$F"
fi
done
|