#!/bin/sh -e # must be sourced at the top level or $@ will be lost when $0 is executed if [ "$1" = "configure" ]; then . /usr/share/debconf/confmodule fi create_hosts_files() { if [ -e /etc/hosts.allow -a -e /etc/hosts.deny ]; then return 0 fi # The default paranoid mode, in order to avoid breaking expected # behaviour is 'false', however, if debconf is used to set this to # true then we add a more restrictive definition PARANOID="false" db_get tcpd/paranoid-mode || true PARANOID="$RET" if [ ! -e /etc/hosts.allow ]; then cat > /etc/hosts.allow <> /etc/hosts.allow < /etc/hosts.deny <> /etc/hosts.deny <> /etc/hosts.deny <&2 exit 1 ;; esac