summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp/files/patch-net-snmp-create-v3-user.in
blob: 360640fe6deb4fc93d938ba5eda5a6e200a4ca24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- net-snmp-create-v3-user.in.orig	2023-08-15 20:32:01 UTC
+++ net-snmp-create-v3-user.in
@@ -3,7 +3,7 @@
 # this shell script is designed to add new SNMPv3 users
 # to Net-SNMP config file.
 
-if @PSCMD@ | @EGREP@ ' snmpd *$' > /dev/null 2>&1 ; then
+if @PSCMD@ -J 0 | egrep ' snmpd *$' > /dev/null 2>&1 ; then
     echo "Apparently at least one snmpd daemon is already running."
     echo "You must stop them in order to use this command."
     exit 1