Browse Source

Merge pull request #14610 from mtelka/mini_snmpd

mini_snmpd: Fix minor nit in the init script
lilik-openwrt-22.03
Rosen Penev 4 years ago
committed by GitHub
parent
commit
45fd6a92c3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      net/mini_snmpd/Makefile
  2. +1
    -1
      net/mini_snmpd/files/mini_snmpd.init

+ 1
- 1
net/mini_snmpd/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=mini_snmpd PKG_NAME:=mini_snmpd
PKG_VERSION:=1.6 PKG_VERSION:=1.6
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Marcin Jurkowski <marcin1j@gmail.com> PKG_MAINTAINER:=Marcin Jurkowski <marcin1j@gmail.com>
PKG_LICENSE:=GPL-2.0 PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING


+ 1
- 1
net/mini_snmpd/files/mini_snmpd.init View File

@ -77,7 +77,7 @@ append_interface() {
[ -z $netdev_count ] && netdev_count=0 [ -z $netdev_count ] && netdev_count=0
# for the purposes of snmp monitoring it doesn't need to be up, it just needs to exist in /proc/net/dev # for the purposes of snmp monitoring it doesn't need to be up, it just needs to exist in /proc/net/dev
network_get_device netdev "$name" network_get_device netdev "$name"
if [ -n "$netdev" ] && grep -qF "$netdev" /proc/net/dev ]; then
if [ -n "$netdev" ] && grep -qF "$netdev" /proc/net/dev; then
[ $netdev_count -ge 8 ] && { [ $netdev_count -ge 8 ] && {
_err "$cfg: too many network interfaces configured, ignoring $name" _err "$cfg: too many network interfaces configured, ignoring $name"
return return


Loading…
Cancel
Save