Skip to content

Commit

Permalink
net-snmp: test for openssl compilation
Browse files Browse the repository at this point in the history
This commit tests if net-snmp was compiled with libopenssl,
and if so adds an option to the config. (Option to work
with to implement luci logic).

Signed-off-by: Christian Korber <ckorber@tdt.de>
  • Loading branch information
Christian Korber authored and Chris1189 committed Nov 6, 2024
1 parent 6fc2d16 commit f00cb28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions net/net-snmp/files/snmpd.init
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,16 @@ snmpd_snmpv3_add() {
fi

if [ "$CONFIG_NETSNMP_WITH_OPENSSL" = "n" ]; then
uci set snmpd.general.openssl='0'
uci commit
return 0
fi

if [ "$CONFIG_NETSNMP_WITH_OPENSSL" = "y" ]; then
uci set snmpd.general.openssl='1'
uci commit
fi

config_get username "$cfg" username
[ -n "$username" ] || return 0

Expand Down

0 comments on commit f00cb28

Please sign in to comment.