blob: ff45b4ed5e03a6537da633c439f3df4ec68e4210 [file] [log] [blame]
gdt69f1fc22004-08-27 15:57:35 +00001#!/bin/sh
2#
3# ripngd is part of the quagga routing beast
4#
5# PROVIDE: ripngd
6# REQUIRE: zebra
7##
8
9PATH=/sbin:/bin:/usr/sbin:/usr/bin:@PREFIX@/sbin:@PREFIX@/bin
10export PATH
11
12if [ -f /etc/rc.subr ]
13then
14 . /etc/rc.subr
15fi
16
17name="ripngd"
18rcvar=$name
19required_files="@PKG_SYSCONFDIR@/${name}.conf"
20command="@PREFIX@/sbin/${name}"
21command_args="-d"
22
23start_precmd="zebra_precmd"
24socket_dir=/var/run/zebra
25pidfile="${socket_dir}/${name}.pid"
26
27zebra_precmd()
28{
29 rc_flags="$(
30 set -- $rc_flags
31 while [ $# -ne 0 ]; do
32 if [ X"$1" = X-P -o X"$1" = X-A ]; then
33 break
34 fi
35 shift
36 done
37 if [ $# -eq 0 ]; then
38 echo "-P 0"
39 fi
40 ) $rc_flags"
41}
42
43load_rc_config $name
44run_rc_command "$1"