bcm63xx: Finalize support for DSL-274xB, rev C2.
[openwrt.git] / target / linux / brcm63xx / base-files / lib / preinit / 05_init_interfaces_brcm63xx
1 #!/bin/sh
2
3 set_preinit_iface() {
4 ifname=eth1
5
6 . /lib/brcm63xx.sh
7
8 ifconfig $ifname 0.0.0.0 up
9 }
10
11 check_module () {
12 module="$1"; shift; params="$*"
13
14 insmod "$module" "$params"
15 sleep 1
16 grep "^$module" /proc/modules
17 return $?
18 }
19
20 init_iface() {
21 insmod switch-core
22 check_module switch-robo || check_module switch-adm || rmmod switch-core
23 }
24
25 boot_hook_add preinit_main set_preinit_iface
26 boot_hook_add preinit_main init_iface
This page took 0.038495 seconds and 5 git commands to generate.