mirror of https://github.com/hak5/openwrt.git
brcm63xx: call brcm63xx_detect explicitly
Now that we have converted all users of global variables to use brcm63xx_board_name, we can savely convert the implicit call to detect in brcm63xx.sh to a single, explicit call in preinit. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44840lede-17.01
parent
020e5733f9
commit
5d0e2d1b41
|
@ -269,5 +269,3 @@ brcm63xx_board_name() {
|
||||||
|
|
||||||
echo $name
|
echo $name
|
||||||
}
|
}
|
||||||
|
|
||||||
brcm63xx_detect
|
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
do_brcm63xx() {
|
do_brcm63xx() {
|
||||||
. /lib/brcm63xx.sh
|
. /lib/brcm63xx.sh
|
||||||
|
|
||||||
|
brcm63xx_detect
|
||||||
}
|
}
|
||||||
|
|
||||||
boot_hook_add preinit_main do_brcm63xx
|
boot_hook_add preinit_main do_brcm63xx
|
||||||
|
|
Loading…
Reference in New Issue