qos-scripts: remove faulty fallback of the device variable to eth0 (#20834)

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

SVN-Revision: 47629
This commit is contained in:
Felix Fietkau 2015-11-24 20:30:06 +00:00
parent 34e0d3cb5a
commit f5970b9472

View File

@ -216,7 +216,7 @@ config_cb() {
config_get device "$CONFIG_SECTION" device config_get device "$CONFIG_SECTION" device
[ -z "$device" ] && { [ -z "$device" ] && {
device="$(find_ifname ${CONFIG_SECTION})" device="$(find_ifname ${CONFIG_SECTION})"
config_set "$CONFIG_SECTION" device "${device:-eth0}" config_set "$CONFIG_SECTION" device "$device"
} }
;; ;;
classgroup) append CG "$CONFIG_SECTION";; classgroup) append CG "$CONFIG_SECTION";;