File: postinst

package info (click to toggle)
phalanx 22-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 836 kB
  • ctags: 534
  • sloc: ansic: 6,877; sh: 79; makefile: 67
file content (26 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (2)
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
#!/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
  chown root.games "$LEARNFILE"
  chmod 664 "$LEARNFILE"
fi


#DEBHELPER#