postinst is in rgmanager 3.1.7-0ubuntu2.
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
# Those using dependency based boot sequencing with sysv-rc and
# installing rgmanager before version 2.20081102-1.1 would have wrong
# runlevel symlinks. Recover from this.
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "3.0.2-5" \
&& [ -f /etc/rc2.d/S[0-9][0-9]rgmanager ] && [ ! -f /etc/rcS.d/S[0-9][0-9]rgmanager ]
then
update-rc.d -f rgmanager remove
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/rgmanager" ]; then
update-rc.d rgmanager start 65 S . start 1 0 6 . >/dev/null || exit $?
fi
# End automatically added section
|