aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/redir/files/redir.in9
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
}