auto_launch_kernel.sh (898B)
1 #!/bin/sh 2 3 # 4 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 5 # 6 # Copyright 2007-2019 Broadcom Inc. All rights reserved. 7 8 # mount fatfs to make config.bcm available 9 grep -q BCM9562 /proc/cpuinfo 10 if [ $? == 0 ] ; then 11 mount -t vfat /dev/mtdblock0 /mnt 12 else 13 grep -q BCM5300 /proc/cpuinfo 14 if [ $? == 0 ] ; then 15 mount -t vfat /dev/mtdblock2 /mnt 16 else 17 grep -q BCM98548 /proc/cpuinfo 18 if [ $? == 0 ] ; then 19 grep -q "Linux version 2.6" /proc/version 20 if [ $? == 0 ] ; then 21 mount -t vfat /dev/mtdblock1 /mnt 22 fi 23 fi 24 fi 25 fi 26 27 cd /broadcom 28 insmod ./linux-kernel-bde.ko 29 insmod ./linux-uk-proxy.ko 30 insmod ./linux-bcm-diag-full.ko 31 if [ -f /mnt/config.bcm ] ; then 32 export BCM_CONFIG_FILE=/mnt/config.bcm 33 fi 34 ./bcm.user.proxy