From 175558bd465222f30a35482d0c7adc55897c8f75 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 18 Aug 2020 07:55:01 +0200 Subject: [PATCH] wlan-ap-config: fix board name sanitisation the code was not stripping the vendor prefix correctly. Fix this by using .* syntax. Signed-off-by: John Crispin --- feeds/wlan-ap/wlan-ap-config/files/etc/uci-defaults/99-tip-data | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/wlan-ap/wlan-ap-config/files/etc/uci-defaults/99-tip-data b/feeds/wlan-ap/wlan-ap-config/files/etc/uci-defaults/99-tip-data index afd5c5278..dd42b6316 100644 --- a/feeds/wlan-ap/wlan-ap-config/files/etc/uci-defaults/99-tip-data +++ b/feeds/wlan-ap/wlan-ap-config/files/etc/uci-defaults/99-tip-data @@ -25,7 +25,7 @@ tp-link,ec420-g1) ;; esac -MODEL=$(echo $MODEL | sed "s/tp-link,//" | tr [a-z] [A-Z]) +MODEL=$(echo $MODEL | sed "s/.*,//" | tr [a-z] [A-Z]) uci set system.tip=tip uci set system.tip.serial="${SERIAL}"