File: config

package info (click to toggle)
portsentry 1.2-12
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 504 kB
  • ctags: 156
  • sloc: ansic: 2,279; makefile: 199; sh: 183; perl: 94; csh: 31
file content (22 lines) | stat: -rw-r--r-- 586 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
22
#!/bin/sh
#$Id: config,v 1.4 2001/07/11 23:12:55 agx Exp $

set -e

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

# location of startup.conf moved in 1.0-2
# to /etc/default/portsentry
if [ -n "$2" ] && dpkg --compare-versions $2 lt 1.0-2 ; then
    if [ -e /etc/portsentry/startup.conf -a ! -e /etc/default/portsentry ]; then
        db_input high portsentry/startup_conf_obsolete || true
	db_go 
    fi
fi

# show no_block message only upon first installation
if [ "$1" = "configure"  -a -z "$2"  ]; then
	    db_input high portsentry/warn_no_block || true
	    db_go
fi