File: preinst.klogd

package info (click to toggle)
sysklogd 1.4.1-18
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 472 kB
  • ctags: 303
  • sloc: ansic: 3,798; sh: 339; perl: 200; makefile: 186
file content (21 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

set -e

dpkg --assert-support-predepends

if [ "$1" = "upgrade" -a -f /etc/init.d/klogd ]; then
    if [ -f /etc/init.d/klogd ]
    then
	set +e
	if [ -x /usr/sbin/invoke-rc.d ]
	then
	    invoke-rc.d klogd stop
	else
	    sh /etc/init.d/klogd stop
	fi
	set -e
    fi
fi

exit 0