# Copyright (C) 2006 OpenWrt.org
START=40
# Copyright (C) 2006 OpenWrt.org
START=40
setup_switch() { return 0; }
include /lib/network
setup_switch() { return 0; }
include /lib/network
+start() {
+ ifup -a
+ /sbin/wifi up
+}
+
+restart() {
+ ifup -a
+ /sbin/wifi up
+}
+
+stop() {
+ ifdown -a
+}
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
-[ $# = 0 ] && { echo " $0 <group>"; exit; }
+[ $# = 0 ] && { echo " $0 <group>"; exit; }
+[ "x$1" = "x-a" ] && {
+ config_cb() {
+ [ -z "$2" ] || eval "$0 $2"
+ }
+ config_load network
+ exit
+}
include /lib/network
scan_interfaces
include /lib/network
scan_interfaces