On 10/03/2014 10:23 PM, John Crispin wrote: > > > On 01/09/2014 17:53, Matthias Schiffer wrote: >> 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. >> > > are you sure, that they *all* start with TP-LINK ? Yes, I've checked all machine strings defined in target/linux/ar71xx/files/arch/mips/ath79/*; everything that contains one of the four old match strings starts with TP-LINK.
> > > > >> Signed-off-by: Matthias Schiffer <mschif...@universe-factory.net> >> --- target/linux/ar71xx/base-files/lib/ar71xx.sh | 6 +----- 1 file >> changed, 1 insertion(+), 5 deletions(-) >> >> diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh >> b/target/linux/ar71xx/base-files/lib/ar71xx.sh index >> 1e96b6d..d26ac3d 100755 --- >> a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ >> b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -744,11 +744,7 @@ >> ar71xx_board_detect() { ;; esac >> >> - case "$machine" in - *TL-WR* | *TL-WA* | *TL-MR* | *TL-WD*) - >> tplink_board_detect "$machine" - ;; - esac + [ >> "${machine:0:8}" = >> 'TP-LINK ' ] && tplink_board_detect "$machine" >> >> [ -z "$name" ] && name="unknown" >> >> > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel