network 414 B

123456789101112131415161718192021222324252627282930313233
  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. setup_switch() { return 0; }
  19. include /lib/network
  20. setup_switch
  21. ifup -a
  22. /sbin/wifi up
  23. }
  24. stop() {
  25. ifdown -a
  26. }