repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
etc
/
rc.d
/
local
blob
8e48b70dc498a475ab5b22805987df877662dc4f
1
#!/bin/sh
2
#
3
# $NetBSD: local,v 1.6 2002/03/22 04:33:59 thorpej Exp $
4
#
5
6
# REQUIRE: DAEMON
7
# PROVIDE: local
8
# BEFORE: LOGIN
9
# KEYWORD: shutdown
10
11
$_rc_subr_loaded
.
/
etc
/
rc.subr
12
13
name
=
"local"
14
start_cmd
=
"local_start"
15
stop_cmd
=
"local_stop"
16
17
local_start
()
18
{
19
if
[
-f
/
etc
/
rc.
local
];
then
20
.
/
etc
/
rc.
local
21
fi
22
}
23
24
local_stop
()
25
{
26
if
[
-f
/
etc
/
rc.shutdown.
local
];
then
27
.
/
etc
/
rc.shutdown.
local
28
fi
29
}
30
31
load_rc_config
$name
32
run_rc_command
"
$1
"