aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2006-04-03 12:33:22 +0800
committermnag <mnag@FreeBSD.org>2006-04-03 12:33:22 +0800
commit2158a0efce4f044dd87ebea839a824c46b6d5019 (patch)
tree586e4d8640a2a0c24e11f21eb79ff2ad9d80b1e5 /net
parentef90600a2ecdbe500b7d9faa1210eb7bedd361cd (diff)
downloadfreebsd-ports-gnome-2158a0efce4f044dd87ebea839a824c46b6d5019.tar.gz
freebsd-ports-gnome-2158a0efce4f044dd87ebea839a824c46b6d5019.tar.zst
freebsd-ports-gnome-2158a0efce4f044dd87ebea839a824c46b6d5019.zip
- Correct use of ${name}_flags in rc.d script. It's automatic added.
- Fix typo in rc.d script too. PR: 94612 Approved by: markp (maintainer timeout, 16 days)
Diffstat (limited to 'net')
-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
}