Merge branch 'vendor/TCPDUMP' (early part)
[dragonfly.git] / etc / rc.d / varsym
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