rewrite of the network scripts and configuration
[openwrt.git] / package / base-files / default / sbin / wifi
index c983fe0..f1ac94f 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
+# Copyright (C) 2006 OpenWrt.org
+
 . /etc/functions.sh
 
 config_get_bool() {
@@ -28,16 +30,11 @@ config_cb() {
 }
 
 config_load wireless
-
-[ -d /lib/wifi -a -n "$(ls /lib/wifi/*.sh 2>&-)" ] && {
-       for script in /lib/wifi/*.sh; do
-               . $script
-       done
-}
+include wifi
 
 for device in $DEVICES; do (
        config_get type "$device" type
-       eval "type setup_$type 2>&- >&-" && {
+       eval "type setup_$type" 2>/dev/null >/dev/null && {
                eval "scan_$type '$device'"
                eval "setup_$type '$device'" && {
                        # TODO: set up network settings
This page took 0.025686 seconds and 4 git commands to generate.