Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d support `resync' (ipf -y).
details: https://anonhg.NetBSD.org/src/rev/0a3577c16d9b
branches: trunk
changeset: 504379:0a3577c16d9b
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Feb 28 17:03:50 2001 +0000
description:
support `resync' (ipf -y).
suggested by Johnny C. Lam in [misc/12300]
diffstat:
etc/rc.d/ipfilter | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r aa7d61817225 -r 0a3577c16d9b etc/rc.d/ipfilter
--- a/etc/rc.d/ipfilter Wed Feb 28 16:55:59 2001 +0000
+++ b/etc/rc.d/ipfilter Wed Feb 28 17:03:50 2001 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: ipfilter,v 1.9 2000/10/09 06:11:38 nisimura Exp $
+# $NetBSD: ipfilter,v 1.10 2001/02/28 17:03:50 lukem Exp $
#
# PROVIDE: ipfilter
@@ -16,9 +16,11 @@
stop_cmd="ipfilter_stop"
reload_precmd="$stop_precmd"
reload_cmd="ipfilter_reload"
+resync_precmd="$stop_precmd"
+resync_cmd="ipfilter_resync"
status_precmd="$stop_precmd"
status_cmd="ipfilter_status"
-extra_commands="reload status"
+extra_commands="reload resync status"
ipfilter_prestart()
{
@@ -70,6 +72,11 @@
/sbin/ipf -s
}
+ipfilter_resync()
+{
+ /sbin/ipf -y
+}
+
ipfilter_status()
{
/sbin/ipf -V
Home |
Main Index |
Thread Index |
Old Index