File: remctl-server.postinst

package info (click to toggle)
remctl 3.18-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,612 kB
  • sloc: ansic: 19,504; sh: 5,386; perl: 1,778; java: 740; makefile: 715; xml: 502; python: 430
file content (16 lines) | stat: -rwxr-xr-x 369 bytes parent folder | download | duplicates (10)
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