mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-13 09:41:54 +02:00
9a624fb1b7
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17597 3c298f89-4303-0410-b956-a3cf2f4a3e73
13 lines
203 B
Bash
13 lines
203 B
Bash
#!/bin/sh
|
|
# Copyright (C) 2009 OpenWrt.org
|
|
|
|
setup_switch_dev() {
|
|
ifconfig "$1" 0.0.0.0
|
|
swconfig dev "$1" load network
|
|
}
|
|
|
|
setup_switch() {
|
|
config_load network
|
|
config_foreach setup_switch_dev switch
|
|
}
|