[packages] wshaper: use ifname option of interfaces, use input value as default to allow for raw device names
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28460 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
bf57df7144
commit
e7a28aad6e
@ -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.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -13,7 +13,7 @@ for s in downlink uplink network nopriohostdst nopriohostsrc noprioportdst nopri
|
|||||||
config_get $s settings $s
|
config_get $s settings $s
|
||||||
done
|
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 "$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 "$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
|
[ -z "$uplink" ] && logger -t wondershaper "Error: Uplink speed not set, aborting." && exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user