File: postinst

package info (click to toggle)
phalanx 21-12
  • links: PTS
  • area: main
  • in suites: potato
  • size: 808 kB
  • ctags: 524
  • sloc: ansic: 6,749; sh: 81; makefile: 64
file content (28 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
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
#!/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"
  db_input low phalanx/learning_file_created || true
  db_go
fi


#DEBHELPER#