repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/services - sync with NetBSD-8
[minix.git]
/
etc
/
rc.d
/
local
blob
4ba60017630657eb5d1dd748f0ab8dafebc056d8
1
#!/bin/sh
2
#
3
# $NetBSD: local,v 1.7 2004/08/13 18:08:03 mycroft 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
"