summaryrefslogtreecommitdiff
path: root/debian/remctl-server.postinst
blob: 79b0dffcf1380a0e23ced61ad8fa9d545bad39fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh
# postinst script for remctl

set -e

if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then
    # Only try to add the inetd line on an initial installation.
    if [ -z "$2" ] || [ x"$2" = x"<unknown>" ] ; then
        update-inetd --add \
        'remctl\t\tstream\ttcp\tnowait\troot\t/usr/sbin/tcpd /usr/sbin/remctld'
    fi
fi

#DEBHELPER#

exit 0