summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-04-30 02:54:17 +0000
committermtm <mtm@FreeBSD.org>2003-04-30 02:54:17 +0000
commit396cb07a9a4da94beca7c38db7bdce8a7d1bf1ab (patch)
tree6eb0f8a78b71896ac80ecffe05785bac5f4b7ccf /etc
parent07b151e512837df1e0e65c75e017ac8d63895065 (diff)
downloadFreeBSD-src-396cb07a9a4da94beca7c38db7bdce8a7d1bf1ab.zip
FreeBSD-src-396cb07a9a4da94beca7c38db7bdce8a7d1bf1ab.tar.gz
o Make the 'Ip-filter module loaded' messages informational
o Make 'No ipnat rules' a warning o Remove unecessary ' ..' Approved by: markm (implicit)
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/ipfilter2
-rwxr-xr-xetc/rc.d/ipnat6
2 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.d/ipfilter b/etc/rc.d/ipfilter
index 23be714..cf2e8ce 100755
--- a/etc/rc.d/ipfilter
+++ b/etc/rc.d/ipfilter
@@ -42,7 +42,7 @@ FreeBSD)
# load ipfilter kernel module if needed
if ! sysctl net.inet.ipf.fr_pass > /dev/null 2>&1; then
if kldload ipl; then
- echo 'IP-filter module loaded.'
+ info 'IP-filter module loaded.'
else
err 1 'IP-filter module failed to load.'
fi
diff --git a/etc/rc.d/ipnat b/etc/rc.d/ipnat
index 7913131..9285348 100755
--- a/etc/rc.d/ipnat
+++ b/etc/rc.d/ipnat
@@ -44,7 +44,7 @@ ipnat_precmd()
# Make sure ipfilter is loaded before continuing
if ! ${SYSCTL} net.inet.ipf.fr_pass >/dev/null 2>&1; then
if kldload ipl; then
- echo 'IP-filter module loaded.'
+ info 'IP-filter module loaded.'
else
err 1 'IP-filter module failed to load.'
fi
@@ -55,10 +55,10 @@ ipnat_precmd()
ipnat_start()
{
if [ ! -f ${ipnat_rules} ]; then
- echo -n ' NO IPNAT RULES'
+ warn 'NO IPNAT RULES'
return 0
fi
- echo -n "Installing NAT rules ... "
+ echo -n "Installing NAT rules."
${ipnat_program} -CF -f ${ipnat_rules} ${ipnat_flags}
}
OpenPOWER on IntegriCloud