File: config

package info (click to toggle)
slay 2.6.2%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 112 kB
  • sloc: sh: 175; makefile: 37
file content (21 lines) | stat: -rwxr-xr-x 433 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

# Source debconf library.
. /usr/share/debconf/confmodule

# Ask questions... IF NECESSARY
if test -n "$2"
then
 if test "`echo $2 | sed -e 's/[.-]//g'`" -lt 127 -o ! -e /etc/slay_mode \
	 -o $1 = reconfigure
 then
  db_input low slay/punish || true
  db_input low slay/butthead || true
  db_go
  if test $1 = reconfigure -a -e /etc/slay_mode
  then
   rm /etc/slay_mode
   # this is an extremely ugly hack
  fi
 fi
fi