postinst is in tcos-standalone 0.89.93ubuntu2.
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 | #!/bin/sh
set -e
# tcos-standalone
echo "TCOS_DATE=$(LC_ALL=C LC_MESSSAGES=C date)" > /var/lib/tcos/standalone/etc/tcos.conf
echo "TCOS_VERSION=$2" >> /var/lib/tcos/standalone/etc/tcos.conf
# Automatically added by dh_installinit
if [ -x "/etc/init.d/tcos-standalone" ] || [ -e "/etc/init/tcos-standalone.conf" ]; then
if [ ! -e "/etc/init/tcos-standalone.conf" ]; then
update-rc.d tcos-standalone defaults >/dev/null
fi
invoke-rc.d tcos-standalone start || exit $?
fi
# End automatically added section
|