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 <john@phrozen.org>
This commit is contained in:
John Crispin 2020-08-18 07:55:01 +02:00
parent 1660f1b45c
commit 175558bd46

View File

@ -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}"