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
dma: better logic for guessing username
[dragonfly.git]
/
etc
/
rc.d
/
varsym
blob
0048519a1478740b97836543b37462d028ae44da
1
#!/bin/sh
2
3
# $DragonFly: src/etc/rc.d/varsym,v 1.2 2005/11/19 21:47:32 swildner Exp $
4
#
5
6
# PROVIDE: varsym
7
# REQUIRE: mountcritremote
8
9
.
/
etc
/
rc.subr
10
11
name
=
varsym
12
rcvar
=
'varsym_enable'
13
required_files
=
"/etc/varsym.conf"
14
start_cmd
=
"varsym_start"
15
stop_cmd
=
":"
16
17
varsym_start
()
18
{
19
if
[
-f
/
etc
/
varsym.conf
];
then
20
while
read
sym
21
do
22
case
${sym}
in
23
\
#*|' ')
24
;;
25
*)
26
varsym
-s
${sym}
27
esac
28
done
< /
etc
/
varsym.conf
29
fi
30
31
}
32
33
load_rc_config
$name
34
run_rc_command
"
$1
"
35