Changeset 31949


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

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

Location:
packages/net/parprouted
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/parprouted/Makefile

    r29213 r31949  
    11# 
    2 # Copyright (C) 2006-2011 OpenWrt.org 
     2# Copyright (C) 2006-2012 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=parprouted 
    1111PKG_VERSION:=0.64 
    12 PKG_RELEASE:=3 
     12PKG_RELEASE:=4 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/parprouted/files/parprouted.init

    r29213 r31949  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006-2011 OpenWrt.org 
     2# Copyright (C) 2006-2012 OpenWrt.org 
    33 
    44START=50 
     
    1212append_interface() { 
    1313        local name="$1" 
    14         local interface 
    15         config_get interface "$name" 'ifname' "$name" 
    16         append args "$interface" 
     14        local device 
     15        network_get_device device "$name" 
     16        append args "${device:-$name}" 
    1717} 
    1818 
     
    3434 
    3535start() { 
    36         include /lib/network 
    37         scan_interfaces 
     36        . /lib/network/functions.sh 
     37 
    3838        config_load 'parprouted' 
    3939        config_foreach start_instance 'parprouted' 
Note: See TracChangeset for help on using the changeset viewer.