Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35503
3c298f89-4303-0410-b956-
a3cf2f4a3e73
ifconfig $ifname 0.0.0.0 up
}
-check_module () {
- module="$1"; shift; params="$*"
-
- insmod "$module" "$params"
- sleep 1
- grep "^$module" /proc/modules
- return $?
-}
-
-init_iface() {
- insmod switch-core
- check_module switch-robo || check_module switch-adm || rmmod switch-core
-}
-
boot_hook_add preinit_main set_preinit_iface
-boot_hook_add preinit_main init_iface