1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-05 11:20:39 +02:00
openwrt-xburst/package/swconfig/files/switch.sh
jow 9a624fb1b7 [package] swconfig: clear ip address on the switch interface, this prevents duplicate assignments of 192.168.1.1 on the DIR-300 at least
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17597 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-16 14:23:01 +00:00

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
}