Changeset 36436


Ignore:
Timestamp:
2013-04-25T21:03:05+02:00 (5 years ago)
Author:
blogic
Message:

ramips: remove now unneeded user-space board detection

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@…>
Patchwork: http://patchwork.openwrt.org/patch/3558/
Acked-by: John Crispin <blogic@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/base-files/lib/ramips.sh

    r36435 r36436  
    77RAMIPS_MODEL= 
    88 
    9 all500x_board_detect() { 
    10         local systype 
    11  
    12         systype=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /system type/ {print $2}' /proc/cpuinfo) 
    13         case "$systype" in 
    14         *"RT5350"*) 
    15                 RAMIPS_MODEL="Allnet ALL5003" 
    16                 ;; 
    17         *"RT3352"*) 
    18                 RAMIPS_MODEL="Allnet ALL5002" 
    19                 ;; 
    20         esac 
    21 } 
    22  
    239ramips_board_detect() { 
    2410        local machine 
     
    231217        esac 
    232218 
    233         case "$machine" in 
    234         *"Allnet ALL500"[23]*) 
    235                 all500x_board_detect 
    236                 ;; 
    237         esac 
    238  
    239219        [ -z "$RAMIPS_BOARD_NAME" ] && RAMIPS_BOARD_NAME="$name" 
    240220        [ -z "$RAMIPS_MODEL" ] && RAMIPS_MODEL="$machine" 
Note: See TracChangeset for help on using the changeset viewer.