[packages/arpwatch] Use grep instead of egrep. Shorter comment.
arekm
arekm at pld-linux.org
Sun Aug 16 21:04:05 CEST 2026
commit 701247dbf70a81dce47045aded42576fc1bec606
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Aug 16 21:03:41 2026 +0200
Use grep instead of egrep. Shorter comment.
arpwatch.init | 2 +-
arpwatch.sysconfig | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/arpwatch.init b/arpwatch.init
index f50694b..62634fc 100644
--- a/arpwatch.init
+++ b/arpwatch.init
@@ -45,7 +45,7 @@ case "$1" in
if [ ! -f /var/lock/subsys/arpwatch ]; then
if [ -z "$INTERFACES" ]; then
INTERFACES="`/sbin/ip link show \
- | egrep '^[^ ].*' |egrep -v "NOARP|LOOPBACK" \
+ | grep -E '^[^ ].*' |grep -E -v "NOARP|LOOPBACK" \
|sed 's/[0-9]*: \([a-zA-Z0-9]*\)[@:].*/\1/'|xargs`"
fi
[ ! -z "$NETWORKS" ] && NETWORKS="-n $NETWORKS"
diff --git a/arpwatch.sysconfig b/arpwatch.sysconfig
index b25d39a..c4a8420 100644
--- a/arpwatch.sysconfig
+++ b/arpwatch.sysconfig
@@ -5,9 +5,8 @@ SERVICE_RUN_NICE_LEVEL="+5"
# this and builds its own option list from the settings below.
ARPWATCH_OPTS=""
-# Extra arpwatch options. -B takes a pcap-filter(7) expression to ignore noisy
-# hosts; it was spelled -F before 3.9, where upstream took -F for something else.
-#GLOBAL_OPTIONS="-B 'not host 192.168.1.1 and not ether host 00:11:22:33:44:55'"
+# pcap filter is -B now, was -F
+#GLOBAL_OPTIONS=""
# Name of monitored interfaces
INTERFACES=
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/arpwatch.git/commitdiff/701247dbf70a81dce47045aded42576fc1bec606
More information about the pld-cvs-commit
mailing list