[package] net-snmp: fix exec section execname -> name usage (#8882)
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 19 Feb 2011 12:48:52 +0000 (12:48 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 19 Feb 2011 12:48:52 +0000 (12:48 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@25586 3c298f89-4303-0410-b956-a3cf2f4a3e73

net/net-snmp/Makefile
net/net-snmp/files/snmpd.init

index 7481268..05de29b 100644 (file)
@@ -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.
 # See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=net-snmp
 PKG_VERSION:=5.4.2.1
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/net-snmp
index 24291fc..770961e 100644 (file)
@@ -101,13 +101,13 @@ snmpd_pass_add() {
 snmpd_exec_add() {
        local cfg="$1"
 
-       config_get execname "$cfg" execname
-       [ -n "$execname" ] || return 0
+       config_get name "$cfg" name
+       [ -n "$name" ] || return 0
        config_get prog "$cfg" prog
        [ -n "$prog" ] || return 0
        config_get args "$cfg" args
        config_get miboid "$cfg" miboid
-       echo "exec $miboid $execname $prog $args" >> $RUN_C
+       echo "exec $miboid $name $prog $args" >> $RUN_C
 }
 start() {
        [ -d $LIB_D ] || mkdir -p $LIB_D