6 config_get
"$1" "$2" "$3"
9 1|on|enabled
) eval "$1=1";;
10 0|off|disabled
) eval "$1=0";;
11 *) eval "$1=${4:-0}";;
16 config_get TYPE
"$CONFIG_SECTION" TYPE
19 append DEVICES
"$CONFIG_SECTION"
22 config_get device
"$CONFIG_SECTION" device
23 config_get vifs
"$device" vifs
24 append vifs
"$CONFIG_SECTION"
25 config_set
"$device" vifs
"$vifs"
32 [ -d /lib
/wifi
-a -n "$(ls /lib/wifi/*.sh 2>&-)" ] && {
33 for script in /lib
/wifi
/*.sh
; do
38 for device
in $DEVICES; do (
39 config_get
type "$device" type
40 eval "type setup_$type 2>&- >&-" && {
41 eval "scan_$type '$device'"
42 eval "setup_$type '$device'" && {
43 # TODO: set up network settings
45 } ||
echo "$device($type): Setup failed" || true
46 } ||
echo "$device($type): Interface type not supported"
This page took 0.049413 seconds and 5 git commands to generate.