qos-scripts: remove faulty fallback of the device variable to eth0 (#20834)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 24 Nov 2015 20:30:06 +0000 (20:30 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 24 Nov 2015 20:30:06 +0000 (20:30 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 47629

package/network/config/qos-scripts/files/usr/lib/qos/generate.sh

index 01f9b6b470b315c5ecb509f1768cb1fcebb00f38..8d22b675c400680fd3b8fa6883449bbbe0be3ef8 100755 (executable)
@@ -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";;