Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/blocklist/libexec NetBSD uses ipf.conf for ipfi...
details: https://anonhg.NetBSD.org/src/rev/fd31b7971a70
branches: trunk
changeset: 372330:fd31b7971a70
user: christos <christos%NetBSD.org@localhost>
date: Tue Nov 15 20:58:50 2022 +0000
description:
NetBSD uses ipf.conf for ipfilter not ipfilter.conf (Hose Luis Duran)
diffstat:
external/bsd/blocklist/libexec/blocklistd-helper | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (18 lines):
diff -r 6dc5bbce3892 -r fd31b7971a70 external/bsd/blocklist/libexec/blocklistd-helper
--- a/external/bsd/blocklist/libexec/blocklistd-helper Tue Nov 15 14:49:14 2022 +0000
+++ b/external/bsd/blocklist/libexec/blocklistd-helper Tue Nov 15 20:58:50 2022 +0000
@@ -14,10 +14,10 @@
pf="ipfw"
. /etc/ipfw-blocklist.rc
ipfw_offset=${ipfw_offset:-2000}
-fi
-
-if [ -z "$pf" ]; then
- for f in npf pf ipfilter; do
+elif [ -f "/etc/ipfilter.conf" ]; then
+ pf="ipf"
+else
+ for f in npf pf ipf; do
if [ -f "/etc/$f.conf" ]; then
pf="$f"
break
Home |
Main Index |
Thread Index |
Old Index