From 1998c28f4825f4d49fa9ebbac42d2b0aecfaeddd Mon Sep 17 00:00:00 2001
From: Dima Dorfman
Date: Mon, 4 Mar 2002 10:30:24 +0000
Subject: [PATCH] Redirect stdout of `ipf -y' to /dev/null. This removes a
stray "filter sync'd" in the middle of the boot output if IPFilter is
enabled, but does not hide any potential errors, which go to stderr.
---
etc/network.subr | 2 +-
etc/rc.d/netoptions | 2 +-
etc/rc.d/network1 | 2 +-
etc/rc.d/network2 | 2 +-
etc/rc.d/network3 | 2 +-
etc/rc.d/routing | 2 +-
etc/rc.network | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/etc/network.subr b/etc/network.subr
index 303cd1fce7da..04824744316d 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -300,7 +300,7 @@ network_pass1() {
#
case ${ipfilter_active} in
[Yy][Ee][Ss])
- ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags}
+ ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
;;
esac
unset ipfilter_active
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index 303cd1fce7da..04824744316d 100644
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -300,7 +300,7 @@ network_pass1() {
#
case ${ipfilter_active} in
[Yy][Ee][Ss])
- ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags}
+ ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
;;
esac
unset ipfilter_active
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index 303cd1fce7da..04824744316d 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -300,7 +300,7 @@ network_pass1() {
#
case ${ipfilter_active} in
[Yy][Ee][Ss])
- ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags}
+ ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
;;
esac
unset ipfilter_active
diff --git a/etc/rc.d/network2 b/etc/rc.d/network2
index 303cd1fce7da..04824744316d 100644
--- a/etc/rc.d/network2
+++ b/etc/rc.d/network2
@@ -300,7 +300,7 @@ network_pass1() {
#
case ${ipfilter_active} in
[Yy][Ee][Ss])
- ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags}
+ ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
;;
esac
unset ipfilter_active
diff --git a/etc/rc.d/network3 b/etc/rc.d/network3
index 303cd1fce7da..04824744316d 100644
--- a/etc/rc.d/network3
+++ b/etc/rc.d/network3
@@ -300,7 +300,7 @@ network_pass1() {
#
case ${ipfilter_active} in
[Yy][Ee][Ss])
- ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags}
+ ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
;;
esac
unset ipfilter_active
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index 303cd1fce7da..04824744316d 100644
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -300,7 +300,7 @@ network_pass1() {
#
case ${ipfilter_active} in
[Yy][Ee][Ss])
- ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags}
+ ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
;;
esac
unset ipfilter_active
diff --git a/etc/rc.network b/etc/rc.network
index 303cd1fce7da..04824744316d 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -300,7 +300,7 @@ network_pass1() {
#
case ${ipfilter_active} in
[Yy][Ee][Ss])
- ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags}
+ ${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
;;
esac
unset ipfilter_active