[source] ar71xx: fix syntax error in /lib/ar71xx.sh

LEDE Commits lede-commits at lists.infradead.org
Tue Nov 29 10:56:28 PST 2016


neoraider pushed a commit to source.git, branch master:
https://git.lede-project.org/a15ea362d7279420d3b620412bbb007f9b02b77f

commit a15ea362d7279420d3b620412bbb007f9b02b77f
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Tue Nov 29 19:53:27 2016 +0100

    ar71xx: fix syntax error in /lib/ar71xx.sh
    
    Remove all comments in ubnt_xm_board_detect(), as it's not possible to add
    comments to specific lines of the case construct anyways.
    
    Fixes: 9a5801e7 "ar71xx: add model detection for UBNT Rocket Ti"
    Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
 target/linux/ar71xx/base-files/lib/ar71xx.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index a4aece8..526d033 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -76,18 +76,18 @@ ubnt_xm_board_detect() {
 	case ${magic:0:3} in
 		"e00"|\
 		"e01"|\
-		"e80")  # Different revisions of the NanoStation?
+		"e80")
 			model="Ubiquiti NanoStation M"
 			;;
 		"e0a")
 			model="Ubiquiti NanoStation loco M"
 			;;
-		"e1b"|\ # Note: the M5 / M5 Ti haven't yet been verified
-		"e1d")  # Rocket M Ti
+		"e1b"|\
+		"e1d")
 			model="Ubiquiti Rocket M"
 			;;
 		"e20"|\
-		"e2d")  # Bullet M Ti
+		"e2d")
 			model="Ubiquiti Bullet M"
 			;;
 		"e30")



More information about the lede-commits mailing list