SNMP frontend. New snmp_lib.[ch] and rearranged code into lib

Test: renamed WITH_SNMP -> ENABLE_SNMP
This commit is contained in:
Olof hagsand 2022-05-14 17:13:10 +02:00
parent 1f8b82e8e1
commit 62a32faf9c
9 changed files with 349 additions and 214 deletions

View file

@ -8,7 +8,7 @@ s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
APPNAME=snmp
# XXX skip for now
if [ ${WITH_NETSNMP} != "yes" ]; then
if [ ${ENABLE_NETSNMP} != "yes" ]; then
echo "Skipping test, Net-SNMP support not enabled."
if [ "$s" = $0 ]; then exit 0; else return 0; fi
fi