Merge from vendor branch TNFTP:
[dragonfly.git] / etc / rc.d / varsym
CommitLineData
a998ea5d
RG
1#!/bin/sh
2
696a5717 3# $DragonFly: src/etc/rc.d/varsym,v 1.2 2005/11/19 21:47:32 swildner Exp $
a998ea5d
RG
4#
5
6# PROVIDE: varsym
7# REQUIRE: mountcritremote
a998ea5d
RG
8
9. /etc/rc.subr
10
11name=varsym
12rcvar='varsym_enable'
13required_files="/etc/varsym.conf"
14start_cmd="varsym_start"
15stop_cmd=":"
16
17varsym_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
33load_rc_config $name
34run_rc_command "$1"
35