File: netscript-ipfilter.netscript.init

package info (click to toggle)
netscript-2.4 5.5.5%2Bnmu1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 480 kB
  • sloc: sh: 2,166; makefile: 86
file content (47 lines) | stat: -rwxr-xr-x 1,210 bytes parent folder | download | duplicates (5)
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
#! /bin/sh -e
### BEGIN INIT INFO
# Provides:          netscript
# Required-Start:    mountkernfs $local_fs
# Required-Stop:     $local_fs
# Should-Start:      openvswitch-switch
# X-Start-Before:    networking
# X-Stop-After:      networking
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Raise network interfaces, and setup iptables.
# Description: Raise network interfaces, starting any required networking 
#              daemons like pppd, DHCP client or openvpn, and setup iptables.
### END INIT INFO
#
# netscript	script to fire up netscript network configuration system
#
#		Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#		Modified for Debian GNU/Linux
#		by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#		Modified from /etc/init.d/skeleton
#		by Matthew Grant <grantma@anathoth.gen.nz>
#
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
DAEMON=/sbin/netscript
NAME=netscript
DESC="netscript"

test -f $DAEMON || exit 0

. /lib/lsb/init-functions

# The /sbin/netscript command complies with Debian Policy so just do this:
# NB the following can make lintian happy
case "$1" in
	start|reload|force-reload|restart)
		$DAEMON $*
		;;
	stop)
		$DAEMON $*
		;;
	*)
		$DAEMON $*
		;;
esac