projects
/
librecmc
/
librecmc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
swconfig: clear ip address on the switch interface, this prevents duplicate assignmen...
[librecmc/librecmc.git]
/
package
/
swconfig
/
files
/
switch.sh
1
#!/bin/sh
2
# Copyright (C) 2009 OpenWrt.org
3
4
setup_switch_dev() {
5
ifconfig "$1" 0.0.0.0
6
swconfig dev "$1" load network
7
}
8
9
setup_switch() {
10
config_load network
11
config_foreach setup_switch_dev switch
12
}