2 # Copyright (C) 2006 OpenWrt.org
8 config_get
"$1" "$2" "$3"
11 1|on|enabled
) eval "$1=1";;
12 0|off|disabled
) eval "$1=0";;
13 *) eval "$1=${4:-0}";;
18 config_get TYPE
"$CONFIG_SECTION" TYPE
21 append DEVICES
"$CONFIG_SECTION"
24 config_get device
"$CONFIG_SECTION" device
25 config_get vifs
"$device" vifs
26 append vifs
"$CONFIG_SECTION"
27 config_set
"$device" vifs
"$vifs"
34 [ -d /lib
/wifi
-a -n "$(ls /lib/wifi/*.sh 2>&-)" ] && {
35 for script in /lib
/wifi
/*.sh
; do
40 for device
in $DEVICES; do (
41 config_get
type "$device" type
42 eval "type setup_$type" 2>/dev
/null
>/dev
/null
&& {
43 eval "scan_$type '$device'"
44 eval "setup_$type '$device'" && {
45 # TODO: set up network settings
47 } ||
echo "$device($type): Setup failed" || true
48 } ||
echo "$device($type): Interface type not supported"
This page took 0.045627 seconds and 5 git commands to generate.