small cleanup
SVN-Revision: 6663
This commit is contained in:
parent
535ff3f6b2
commit
2954f04b41
1 changed files with 18 additions and 14 deletions
|
@ -71,6 +71,8 @@ start_net() {(
|
|||
setup_interface "$1" "$2"
|
||||
)}
|
||||
|
||||
scan_wifi() {
|
||||
local cfgfile="$1"
|
||||
config_cb() {
|
||||
config_get TYPE "$CONFIG_SECTION" TYPE
|
||||
case "$TYPE" in
|
||||
|
@ -85,11 +87,13 @@ config_cb() {
|
|||
;;
|
||||
esac
|
||||
}
|
||||
config_load "${cfgfile:-wireless}"
|
||||
}
|
||||
|
||||
DEVICES=
|
||||
DRIVERS=
|
||||
config_load wireless
|
||||
include /lib/wifi
|
||||
scan_wifi
|
||||
|
||||
case "$1" in
|
||||
down) wifi_updown "disable" "$2";;
|
||||
|
|
Loading…
Reference in a new issue