[brcm63xx] remove superfluous calls to /lib/brcm63xx.sh
The first preinit script 03_do_brcm63xx.sh does the right job of exporting variables for the other subsequent preinit scripts to use them. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35504 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
aabf50e0bf
commit
e0ccfea057
|
@ -9,6 +9,7 @@ status_led=""
|
||||||
status_led2=""
|
status_led2=""
|
||||||
sys_mtd_part=""
|
sys_mtd_part=""
|
||||||
brcm63xx_has_reset_button=""
|
brcm63xx_has_reset_button=""
|
||||||
|
ifname=""
|
||||||
|
|
||||||
brcm63xx_detect() {
|
brcm63xx_detect() {
|
||||||
board_name=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
|
board_name=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set_preinit_iface() {
|
set_preinit_iface() {
|
||||||
ifname=eth1
|
|
||||||
|
|
||||||
. /lib/brcm63xx.sh
|
|
||||||
|
|
||||||
ifconfig $ifname 0.0.0.0 up
|
ifconfig $ifname 0.0.0.0 up
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
. /lib/brcm63xx.sh
|
|
||||||
|
|
||||||
enable_reset_button() {
|
enable_reset_button() {
|
||||||
if [ "$brcm63xx_has_reset_button" = "true" ]; then
|
if [ "$brcm63xx_has_reset_button" = "true" ]; then
|
||||||
insmod input-core
|
insmod input-core
|
||||||
|
|
Loading…
Reference in New Issue