Changeset 31872


Ignore:
Timestamp:
2012-05-27T15:22:11+02:00 (6 years ago)
Author:
jogo
Message:

bcm63xx: move the board name workaround to /lib/brcm63xx.sh

Location:
trunk/target/linux/brcm63xx/base-files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/base-files/etc/init.d/defconfig

    r26956 r31872  
    77 
    88start() { 
    9         local board=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo) 
     9        . /lib/brcm63xx.sh 
    1010 
    11         if [ "$board" = "96358VW" ] && [ -e /proc/switch/eth1/enable ]; then 
    12                 board="DVAG3810BN" 
    13         fi 
     11        [ ! -d /etc/defconfig/$board_name ] && board_name="generic" 
    1412 
    15         [ ! -d /etc/defconfig/$board ] && board="generic" 
    16  
    17         for f in $( ls /etc/defconfig/$board ); do 
     13        for f in $( ls /etc/defconfig/$board_name ); do 
    1814                if [ ! -e /etc/config/$f ]; then 
    19                         cp /etc/defconfig/$board/$f /etc/config/ 
     15                        cp /etc/defconfig/$board_name/$f /etc/config/ 
    2016                fi 
    2117        done 
  • trunk/target/linux/brcm63xx/base-files/lib/brcm63xx.sh

    r31871 r31872  
    1313brcm63xx_detect() { 
    1414        board_name=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo) 
     15 
     16        if [ "$board_name" = "96358VW" ] && [ -e /proc/switch/eth1/enable ]; then 
     17                board_name="DVAG3810BN" 
     18        fi 
    1519 
    1620        case "$board_name" in 
Note: See TracChangeset for help on using the changeset viewer.