postinst is in phalanx 22+d051004-13.1.
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 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
LEARNFILE=/var/games/phalanx.learn
OLDLEARNFILE=/var/lib/games/phalanx.learn
if test "$1" != configure; then
exit 0
fi
# Create the learning file
db_get phalanx/learning_file_erase
if [ "$RET" = true ]; then
db_get phalanx/learning_file_size
ITEMS="$RET"
dd if=/dev/zero of="$LEARNFILE" bs=8 count=$ITEMS >/dev/null 2>&1
chown root:games "$LEARNFILE"
chmod 664 "$LEARNFILE"
fi
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
|