fix unnamed config sections
[openwrt.git] / package / base-files / default / sbin / wifi
index c983fe0..63b2f12 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
+# Copyright (C) 2006 OpenWrt.org
+
 . /etc/functions.sh
 
 config_get_bool() {
@@ -37,7 +39,7 @@ config_load wireless
 
 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.020061 seconds and 4 git commands to generate.