Only update /etc/aiccu.conf password & tunnel fields if not empty
[aiccu.git] / doc / aiccu.init.freebsd
blob10044c5cf46ce014767e923b04f982438dd4c791
1 #!/bin/sh
3 # $FreeBSD$
6 # PROVIDE: sixxs-aiccu
7 # REQUIRE: NETWORKING
8 # KEYWORD: FreeBSD
11 # Add the following lines to /etc/rc.conf to enable sixxs-aiccu:
13 #sixxs_aiccu_enable="YES"
16 . %%RC_SUBR%%
18 name=sixxs_aiccu
19 rcvar=`set_rcvar`
21 command="%%PREFIX%%/sbin/sixxs-aiccu start"
22 command_args=%%PREFIX%%/etc/aiccu.conf
23 stop_cmd="%%PREFIX%%/sbin/sixxs-aiccu stop"
24 required_files=%%PREFIX%%/etc/aiccu.conf
26 # set default
27 sixxs_aiccu_enable=${sixxs_aiccu_enable:-"NO"}
29 load_rc_config ${name}
30 run_rc_command "$1"