File: micro-httpd.prerm

package info (click to toggle)
micro-httpd 20051212-9
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 96 kB
  • ctags: 23
  • sloc: sh: 299; ansic: 231; makefile: 67
file content (50 lines) | stat: -rw-r--r-- 630 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh

set -e

PACKAGE=$(basename $0 | sed 's/\..*//')
pkgdir=/usr/share/$PACKAGE
conf=/etc/inetd.conf
port="www"
entry=

Die ()
{
    echo "$0: $*" >&2
    exit 1
}

Debhelper ()
{
    :
    #DEBHELPER#
}

InetdName ()
{
    name=inetd

    if [ -f /etc/init.d/openbsd-inetd ]; then
        name="openbsd-inetd"
    elif [ -f /etc/init.d/rlinetd ]; then
        name="rlinetd"
    fi

    echo $name
}

Main ()
{
    if [ "$1" = "remove" ]; then

	echo "$0: removing $conf entry" >&2
	update-inetd --group STANDARD --remove "$port.*$PACKAGE"
	invoke-rc.d $(InetdName) reload
    fi

    Debhelper
}

Main "$@"

# End of file