projects
/
openwrt
/
svn-archive
/
archive.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[packages] ekg: explicitely disable libbind & libgsm, use 'make install', cleanup
[openwrt/svn-archive/archive.git]
/
net
/
vrrpd
/
files
/
vrrpd.init
1
#!/bin/sh /etc/rc.common
2
# Copyright (C) 2006 OpenWrt.org
3
START
=
50
4
5
BIN
=
vrrpd
6
DEFAULT
=/
etc
/
default
/
$BIN
7
RUN_D
=/
var
/
run
8
PID_F
=
$RUN_D
/
$BIN_${IF}
_
${ID}
.pid
9
10
start
() {
11
[
-f
$DEFAULT
] &&
.
$DEFAULT
12
$BIN $OPTIONS
13
}
14
15
stop
() {
16
[
-f
$PID_F
] &&
kill
$
(
cat
$PID_F
) >/
dev
/
null
2
>&
1
17
}
18