Changeset 31948


Ignore:
Timestamp:
2012-05-28T17:35:45+02:00 (6 years ago)
Author:
jow
Message:

[packages] mini_snmpd: use network.sh to find devices

Location:
packages/net/mini_snmpd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/mini_snmpd/Makefile

    r29211 r31948  
    11# 
    2 # Copyright (C) 2009-2011 OpenWrt.org 
     2# Copyright (C) 2009-2012 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=mini_snmpd 
    1111PKG_VERSION:=1.2b 
    12 PKG_RELEASE:=6 
     12PKG_RELEASE:=7 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/mini_snmpd/files/mini_snmpd.init

    r29211 r31948  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2009-2011 OpenWrt.org 
     2# Copyright (C) 2009-2012 OpenWrt.org 
    33 
    44START=50 
     
    1414append_interface() { 
    1515        local name="$1" 
    16         local interface 
    17         config_get interface "$name" 'ifname' "$name" 
    18         append interfaces "$interface" ',' 
     16        local device 
     17        network_get_device device "$name" 
     18        append interfaces "${device:-$name}" ',' 
    1919} 
    2020 
     
    5555 
    5656start() { 
    57         include /lib/network 
    58         scan_interfaces 
     57        . /lib/functions/network.sh 
     58 
    5959        config_load 'mini_snmpd' 
    6060        config_foreach start_instance 'mini_snmpd' 
Note: See TracChangeset for help on using the changeset viewer.