switch.sh 203 B

123456789101112
  1. #!/bin/sh
  2. # Copyright (C) 2009 OpenWrt.org
  3. setup_switch_dev() {
  4. ifconfig "$1" 0.0.0.0
  5. swconfig dev "$1" load network
  6. }
  7. setup_switch() {
  8. config_load network
  9. config_foreach setup_switch_dev switch
  10. }