repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
kernel: Mark some syscalls obsolete which are really libc functions.
[dragonfly.git]
/
etc
/
rc.d
/
vknetd
blob
3d4682ba5dc5d49c3bfefe513264a9a9dc908691
1
#!/bin/sh
2
#
3
4
# PROVIDE: vknetd
5
# REQUIRE: DAEMON netif
6
# BEFORE: LOGIN
7
8
.
/
etc
/
rc.subr
9
10
name
=
"vknetd"
11
rcvar
=
`set_rcvar`
12
start_precmd
=
"vknetd_precmd"
13
command
=
"/usr/sbin/
${name}
"
14
pidfile
=
"/var/run/
${name}
.pid"
15
16
vknetd_precmd
()
17
{
18
# load if_tap kernel module if needed
19
kldload
-n
if_tap ||
exit
1
20
}
21
22
load_rc_config
$name
23
run_rc_command
"
$1
"