From f5970b94720ce7016979ac2fd3fef50f23994740 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Tue, 24 Nov 2015 20:30:06 +0000
Subject: [PATCH] qos-scripts: remove faulty fallback of the device variable to
 eth0 (#20834)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47629
---
 .../network/config/qos-scripts/files/usr/lib/qos/generate.sh    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 01f9b6b470b..8d22b675c40 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";;
-- 
GitLab