2009-04-21 21:48:48 +03:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright (C) 2009 OpenWrt.org
|
|
|
|
|
|
|
|
setup_switch_dev() {
|
2009-09-16 17:23:01 +03:00
|
|
|
ifconfig "$1" 0.0.0.0
|
2009-04-21 21:48:48 +03:00
|
|
|
swconfig dev "$1" load network
|
|
|
|
}
|
|
|
|
|
|
|
|
setup_switch() {
|
|
|
|
config_load network
|
|
|
|
config_foreach setup_switch_dev switch
|
|
|
|
}
|