From: Jo-Philipp Wich Date: Sat, 15 Oct 2011 18:55:15 +0000 (+0000) Subject: [packages] wshaper: use ifname option of interfaces, use input value as default to... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=86519204f5e6f30d64e78dcd191bf269166a791c [packages] wshaper: use ifname option of interfaces, use input value as default to allow for raw device names SVN-Revision: 28460 --- diff --git a/net/wshaper/Makefile b/net/wshaper/Makefile index e968fca8b2..f6c1e07164 100644 --- a/net/wshaper/Makefile +++ b/net/wshaper/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007 OpenWrt.org +# Copyright (C) 2007-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. diff --git a/net/wshaper/files/wshaper.htb b/net/wshaper/files/wshaper.htb index 96f29cc469..d8e35adb31 100755 --- a/net/wshaper/files/wshaper.htb +++ b/net/wshaper/files/wshaper.htb @@ -13,7 +13,7 @@ for s in downlink uplink network nopriohostdst nopriohostsrc noprioportdst nopri config_get $s settings $s done -device=$(uci_get_state network "$network" device) +device=$(uci_get_state network "$network" ifname "$network") [ -z "$device" ] && logger -t wondershaper "Error: Could not find the device for network $network, aborting." && exit 1 [ -z "$downlink" ] && logger -t wondershaper "Error: Downlink speed not set, aborting." && exit 1 [ -z "$uplink" ] && logger -t wondershaper "Error: Uplink speed not set, aborting." && exit 1