File: postinst

package info (click to toggle)
linux-ftpd 0.17-20sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 324 kB
  • ctags: 189
  • sloc: ansic: 2,586; yacc: 1,148; makefile: 94; sh: 22
file content (17 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e
# $Id: postinst,v 1.7 2003/06/21 02:31:44 herbert Exp $

if grep -q '[[:blank:]]/usr/sbin/in\.ftpd\>' /etc/inetd.conf; then
	if ! grep -q '^ftp\>' /etc/inetd.conf; then
		update-inetd --pattern '/usr/sbin/in\.ftpd' --enable ftp
	fi
else
	FTPENTRY="ftp		stream	tcp	nowait	root	/usr/sbin/tcpd	/usr/sbin/in.ftpd"
	if grep -q '^ftp\>' /etc/inetd.conf; then
		update-inetd --group STANDARD --add "## $FTPENTRY"
	else
		update-inetd --group STANDARD --add "$FTPENTRY"
	fi
fi

#DEBHELPER#