Ping... On 09/01/2014 05:53 PM, 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. > > Signed-off-by: Matthias Schiffer <[email protected]> > --- > 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" > >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
