From: nbd Date: Tue, 24 Nov 2015 20:30:06 +0000 (+0000) Subject: qos-scripts: remove faulty fallback of the device variable to eth0 (#20834) X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=db9411075e34646d53fe37cb1c0255f93f48d68b;p=openwrt.git qos-scripts: remove faulty fallback of the device variable to eth0 (#20834) Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47629 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh index 01f9b6b470..8d22b675c4 100755 --- a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh +++ b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh @@ -216,7 +216,7 @@ config_cb() { config_get device "$CONFIG_SECTION" device [ -z "$device" ] && { device="$(find_ifname ${CONFIG_SECTION})" - config_set "$CONFIG_SECTION" device "${device:-eth0}" + config_set "$CONFIG_SECTION" device "$device" } ;; classgroup) append CG "$CONFIG_SECTION";;