net-snmp: fix 'bad number' warning when engineidtype is unset
authorMichael Pfeifroth <redacted>
Mon, 22 Jun 2026 15:05:07 +0000 (17:05 +0200)
committerFlorian Eckert <redacted>
Tue, 23 Jun 2026 07:12:16 +0000 (09:12 +0200)
commitd5a0672d6a015043f26eaa8585a824cecd2a72ee
treed280b7a7edb58953bede20bf37c6c6d1faf7879c
parent94502932205c017112e616701ec93bd3887e7d2f
net-snmp: fix 'bad number' warning when engineidtype is unset

Add a -n guard before the arithmetic comparison of engineidtype in
snmpd_engineid_add(). When the engineid UCI section exists but
engineidtype is not configured, the empty string is passed to
[ -ge ]/[ -le ] which causes 'sh: bad number' on every boot.

Signed-off-by: Michael Pfeifroth <redacted>
net/net-snmp/files/snmpd.init
git clone https://git.99rst.org/PROJECT