brcm47xx: dont manually insmod switch drivers
Signed-off-by: John Crispin <bloic@openwrt.org> SVN-Revision: 36993
This commit is contained in:
parent
2be717560a
commit
39df8d1a45
@ -21,7 +21,7 @@ define KernelPackage/switch
|
|||||||
$(PKG_BUILD_DIR)/switch-core.ko \
|
$(PKG_BUILD_DIR)/switch-core.ko \
|
||||||
$(PKG_BUILD_DIR)/switch-adm.ko \
|
$(PKG_BUILD_DIR)/switch-adm.ko \
|
||||||
$(PKG_BUILD_DIR)/switch-robo.ko
|
$(PKG_BUILD_DIR)/switch-robo.ko
|
||||||
AUTOLOAD:=$(call AutoLoad,20,switch-core switch-robo switch-adm)
|
AUTOLOAD:=$(call AutoLoad,20,switch-core switch-robo switch-adm,1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/switch/description
|
define KernelPackage/switch/description
|
||||||
|
@ -23,10 +23,6 @@ set_preinit_iface() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init_iface() {
|
init_iface() {
|
||||||
insmod switch-core
|
|
||||||
insmod switch-robo
|
|
||||||
insmod switch-adm
|
|
||||||
|
|
||||||
[ -d /proc/switch/eth0 ] && [ "$ifname" = "eth0" ] && {
|
[ -d /proc/switch/eth0 ] && [ "$ifname" = "eth0" ] && {
|
||||||
case "$(cat /proc/switch/eth0/cpuport)" in
|
case "$(cat /proc/switch/eth0/cpuport)" in
|
||||||
"5") cpu_port="5u*";;
|
"5") cpu_port="5u*";;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user