mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-17 09:21:35 +00:00
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:
parent
1660f1b45c
commit
175558bd46
@ -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}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user