Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Sync ipf(4) after starting or stopping. This is nec...
details: https://anonhg.NetBSD.org/src/rev/577c4138661a
branches: trunk
changeset: 526486:577c4138661a
user: tron <tron%NetBSD.org@localhost>
date: Sat May 04 13:53:02 2002 +0000
description:
Sync ipf(4) after starting or stopping. This is necesarry to make filter
rules for dynamically created interfaces like pppoe(4) effective.
diffstat:
etc/rc.d/network | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 53983292976d -r 577c4138661a etc/rc.d/network
--- a/etc/rc.d/network Sat May 04 12:54:03 2002 +0000
+++ b/etc/rc.d/network Sat May 04 13:53:02 2002 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: network,v 1.37 2002/04/29 12:13:14 lukem Exp $
+# $NetBSD: network,v 1.38 2002/05/04 13:53:02 tron Exp $
#
# PROVIDE: network
@@ -308,6 +308,11 @@
fi
fi
+ # resync ipf(4)
+ if checkyesno ipfilter; then
+ /sbin/ipf -y
+ fi
+
# XXX this must die
if [ -s /etc/netstart.local ]; then
sh /etc/netstart.local start
@@ -364,6 +369,11 @@
#
route -n flush
+ # resync ipf(4)
+ if checkyesno ipfilter; then
+ /sbin/ipf -y
+ fi
+
}
load_rc_config $name
Home |
Main Index |
Thread Index |
Old Index