mirror of https://github.com/hak5/openwrt-owl.git
ar71xx: simplify TP-LINK model detection
All TP-LINK machine names begin with "TP-LINK", so there's no need to check for more specific model names. This also allows adding new models like the Archer series more easily. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 42795owl
parent
c22bebf6ab
commit
05777fb947
|
@ -750,11 +750,7 @@ ar71xx_board_detect() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$machine" in
|
[ "${machine:0:8}" = 'TP-LINK ' ] && tplink_board_detect "$machine"
|
||||||
*TL-WR* | *TL-WA* | *TL-MR* | *TL-WD*)
|
|
||||||
tplink_board_detect "$machine"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
[ -z "$name" ] && name="unknown"
|
[ -z "$name" ] && name="unknown"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue