From 9957cd4318bca8e0bd5f72766ee313874a8eb631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Fri, 17 Apr 2020 15:51:48 +0200 Subject: [PATCH] fff-gateway: make uci query for vlan ports quiet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The user might create a vlan without any ports. This setup lead to "uci: Entry not found" error messages, while still working as intended. The '-q' flag is added to the corresponding uci query to hide this error. While this isn't strictly necessary, the uci subcommand is quoted to bring it in line with the other subcommands. Signed-off-by: Fabian Bläse Reviewed-by: Adrian Schmutzler --- src/packages/fff/fff-gateway/files/etc/gateway.d/20-vlan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/fff/fff-gateway/files/etc/gateway.d/20-vlan b/src/packages/fff/fff-gateway/files/etc/gateway.d/20-vlan index cfc8e69..a46bcd5 100644 --- a/src/packages/fff/fff-gateway/files/etc/gateway.d/20-vlan +++ b/src/packages/fff/fff-gateway/files/etc/gateway.d/20-vlan @@ -10,7 +10,7 @@ BOARD="$(uci get board.model.name)" configure() { add_vlan() { local vlan="$1" - local ports=$(uci get gateway.$vlan.ports) + local ports="$(uci -q get gateway.$vlan.ports)" local name="$SWITCHDEV"_$vlan uci set network.$name='switch_vlan'