network 346 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006 OpenWrt.org
  3. START=40
  4. STOP=40
  5. boot() {
  6. setup_switch() { return 0; }
  7. include /lib/network
  8. setup_switch
  9. [ -s /etc/config/wireless ] || \
  10. /sbin/wifi detect > /etc/config/wireless
  11. /sbin/wifi up
  12. }
  13. start() {
  14. ifup -a
  15. /sbin/wifi up
  16. }
  17. restart() {
  18. ifup -a
  19. /sbin/wifi up
  20. }
  21. stop() {
  22. ifdown -a
  23. }