- Fix several compilation warnings.
[dragonfly.git] / etc / rc.d / varsym
CommitLineData
a998ea5d
RG
1#!/bin/sh
2
3# $DragonFly: src/etc/rc.d/varsym,v 1.1 2004/02/01 10:25:48 rob Exp $
4#
5
6# PROVIDE: varsym
7# REQUIRE: mountcritremote
8# KEYWORD: DragonFly
9
10. /etc/rc.subr
11
12name=varsym
13rcvar='varsym_enable'
14required_files="/etc/varsym.conf"
15start_cmd="varsym_start"
16stop_cmd=":"
17
18varsym_start()
19{
20 if [ -f /etc/varsym.conf ]; then
21 while read sym
22 do
23 case ${sym} in
24 \#*|' ')
25 ;;
26 *)
27 varsym -s ${sym}
28 esac
29 done < /etc/varsym.conf
30 fi
31
32}
33
34load_rc_config $name
35run_rc_command "$1"
36