diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-04-03 04:33:22 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-04-03 04:33:22 +0000 |
commit | d00ce7f8cffcb8fa2be59e0f901f5aa6442929b3 (patch) | |
tree | 1da724558971dbbe2fce82c80325a227dac3048f /net/redir | |
parent | 3dcfe541c1799de5c05627d717dca51bf0ee56ba (diff) |
Notes
Diffstat (limited to 'net/redir')
-rw-r--r-- | net/redir/files/redir.in | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/redir/files/redir.in b/net/redir/files/redir.in index 17f69f3ddb6c..d73dfbddb4ed 100644 --- a/net/redir/files/redir.in +++ b/net/redir/files/redir.in @@ -10,28 +10,27 @@ # redir_enable (bool): Set it to "YES" to enable redir. # Default is "NO". # redir_flags (flags): Set flags to redir. -# Default id "". see redir(1). +# Default is "". see redir(1). # Example: "--lport=80 --cport=3128 --syslog" # . %%RC_SUBR%% name="redir" -rcvar=`set_rcvar` +rcvar=${name}_enable load_rc_config $name : ${redir_enable="NO"} -: ${redir_flags=""} command=%%PREFIX%%/bin/redir -command_args="${redir_flags} &" +command_args="&" start_precmd="${name}_flags_check" redir_flags_check() { if [ "${redir_flags}" = "" ]; then - err 1 "\$redir_flags are required. see redir(1)" + err 1 "\$redir_flags are required. see available options in redir(1)" fi } |