#!/bin/sh set -e if ! id -u identd >/dev/null 2>&1; then adduser --quiet --system --home /run/identd identd fi mkdir -p /run/identd chmod 755 /run/identd case "$1" in configure) # Update inetd.conf (first remove any existing, then add the new). update-inetd --remove ident update-inetd --group INFO --add \ "ident\t\tstream\ttcp\tnowait\tidentd /usr/sbin/ident2 ident2 -i -n" ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac