File: postinst

package info (click to toggle)
phalanx 25-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,048 kB
  • sloc: ansic: 8,829; sh: 80; makefile: 79
file content (26 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (7)
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 2>&1
  chown root:games "$LEARNFILE"
  chmod 664 "$LEARNFILE"
fi


#DEBHELPER#