File: sysvinit-core.config

package info (click to toggle)
sysvinit 2.88dsf-59
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,300 kB
  • ctags: 1,736
  • sloc: ansic: 7,096; sh: 3,883; perl: 371; makefile: 315
file content (44 lines) | stat: -rwxr-xr-x 1,030 bytes parent folder | download | duplicates (6)
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
#!/bin/sh
# config script for sysvinit
#
# see: dh_installdeb(1)

set -e

. /usr/share/debconf/confmodule

# summary of how this script can be called:
#	 * <config> 'configure' <installed-version>
#	 * <config> 'reconfigure' <installed-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package

case "$1" in
    configure|reconfigure)

	if [ "$(uname)" = GNU ]; then
	    db_set sysvinit/hurd-fix-inittab "true"
	    if echo '3e3693078d18d4696c83a76531433cd4  /etc/inittab' \
		| md5sum --status --check -; then
		    # The file is unmodified, update it silently.
		    :
	    elif [ $(fgrep -c -e '/libexec/getty' /etc/inittab) -gt 0 ] || \
		[ $(grep -c '^c:' /etc/inittab) -eq 0 ]; then
		    db_input low sysvinit/hurd-fix-inittab || true
		    db_go
	    fi
	fi
    ;;

    *)
	echo "config script called with unknown argument '$1'" >&2
	exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0