File: init-lsb-broken

package info (click to toggle)
lintian 2.122.0
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 71,536 kB
  • sloc: perl: 45,882; javascript: 9,151; makefile: 4,061; sh: 3,040; ansic: 705; xml: 451; python: 91; java: 15; cpp: 9; tcl: 4; lisp: 3
file content (34 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (115)
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
#! /bin/sh
### BEGIN INIT INFO
# Provides:          bad-lsb
#  Required-Start:    $local_fs $remote_fs
# Required-Stop:     
# Default-Start:     1 2 3 4 5
# Default-Stop:      S 0 1 6 X
# Short-Description: Example Lintian initscript
#                    but this can't be continued
# Description:       An example of a bad LSB section in an init script.
#                    This continuation is allowed (with spaces).
#			This one is too (with tabs).
# X-Debian-Foo:      Some unknown but valid keyword.
# Foo:               Some invalid keyword.

# Whoops, no terminating line.

# And then we have this duplicate section.
### BEGIN INIT INFO
# Required-Start:    This one doesn't count.
### END INIT INFO

# Hey, look at all of those missing actions!  But stop isn't missing.
case "$1" in
  start|stop)
	echo "Blah"
	;;
  *)
	echo "Usage: foo start" >&2
	exit 3
	;;
esac

: