[package] net-snmp: fix exec section execname -> name usage ()

git-svn-id: svn://svn.openwrt.org/openwrt/packages@25586 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2011-02-19 12:48:52 +00:00
parent 3725b52dbc
commit bc9cb543a3
2 changed files with 5 additions and 5 deletions
net/net-snmp

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006-2010 OpenWrt.org # Copyright (C) 2006-2011 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=net-snmp PKG_NAME:=net-snmp
PKG_VERSION:=5.4.2.1 PKG_VERSION:=5.4.2.1
PKG_RELEASE:=4 PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/net-snmp PKG_SOURCE_URL:=@SF/net-snmp

@ -101,13 +101,13 @@ snmpd_pass_add() {
snmpd_exec_add() { snmpd_exec_add() {
local cfg="$1" local cfg="$1"
config_get execname "$cfg" execname config_get name "$cfg" name
[ -n "$execname" ] || return 0 [ -n "$name" ] || return 0
config_get prog "$cfg" prog config_get prog "$cfg" prog
[ -n "$prog" ] || return 0 [ -n "$prog" ] || return 0
config_get args "$cfg" args config_get args "$cfg" args
config_get miboid "$cfg" miboid config_get miboid "$cfg" miboid
echo "exec $miboid $execname $prog $args" >> $RUN_C echo "exec $miboid $name $prog $args" >> $RUN_C
} }
start() { start() {
[ -d $LIB_D ] || mkdir -p $LIB_D [ -d $LIB_D ] || mkdir -p $LIB_D