ramips: remove now unneeded user-space board detection
authorJohn Crispin <john@openwrt.org>
Thu, 25 Apr 2013 19:03:05 +0000 (19:03 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 25 Apr 2013 19:03:05 +0000 (19:03 +0000)
Now that ALL5002 and ALL5003 each got their own DTS and board names, remove
the now no longer needed user-space part which previously differentiated between
ALL5002 and ALL5003.

Signed-off-by: Daniel Golle <dgolle@allnet.de>
Patchwork: http://patchwork.openwrt.org/patch/3558/
Acked-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36436

target/linux/ramips/base-files/lib/ramips.sh

index 99bdbdd80e754700cadba76a0261138146bbcc2e..63af00d031bd0922d6b4c7dd858122add842bfd9 100755 (executable)
@@ -6,20 +6,6 @@
 RAMIPS_BOARD_NAME=
 RAMIPS_MODEL=
 
-all500x_board_detect() {
-       local systype
-
-       systype=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /system type/ {print $2}' /proc/cpuinfo)
-       case "$systype" in
-       *"RT5350"*)
-               RAMIPS_MODEL="Allnet ALL5003"
-               ;;
-       *"RT3352"*)
-               RAMIPS_MODEL="Allnet ALL5002"
-               ;;
-       esac
-}
-
 ramips_board_detect() {
        local machine
        local name
@@ -230,12 +216,6 @@ ramips_board_detect() {
                ;;
        esac
 
-       case "$machine" in
-       *"Allnet ALL500"[23]*)
-               all500x_board_detect
-               ;;
-       esac
-
        [ -z "$RAMIPS_BOARD_NAME" ] && RAMIPS_BOARD_NAME="$name"
        [ -z "$RAMIPS_MODEL" ] && RAMIPS_MODEL="$machine"