summaryrefslogtreecommitdiff
path: root/package/swconfig/files/switch.sh
blob: d752b1383d8ece7525a281059415a1e0a07debe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Copyright (C) 2009 OpenWrt.org

setup_switch_dev() {
	swconfig dev "$1" load network
}

setup_switch() {
	config_load network
	config_foreach setup_switch_dev switch
}