1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 21:42:04 +02:00

small cleanup

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6663 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-03-24 13:42:53 +00:00
parent 9910132d53
commit 1addd4cc9c

View File

@ -71,25 +71,29 @@ start_net() {(
setup_interface "$1" "$2" setup_interface "$1" "$2"
)} )}
config_cb() { scan_wifi() {
config_get TYPE "$CONFIG_SECTION" TYPE local cfgfile="$1"
case "$TYPE" in config_cb() {
wifi-device) config_get TYPE "$CONFIG_SECTION" TYPE
append DEVICES "$CONFIG_SECTION" case "$TYPE" in
;; wifi-device)
wifi-iface) append DEVICES "$CONFIG_SECTION"
config_get device "$CONFIG_SECTION" device ;;
config_get vifs "$device" vifs wifi-iface)
append vifs "$CONFIG_SECTION" config_get device "$CONFIG_SECTION" device
config_set "$device" vifs "$vifs" config_get vifs "$device" vifs
;; append vifs "$CONFIG_SECTION"
esac config_set "$device" vifs "$vifs"
;;
esac
}
config_load "${cfgfile:-wireless}"
} }
DEVICES= DEVICES=
DRIVERS= DRIVERS=
config_load wireless
include /lib/wifi include /lib/wifi
scan_wifi
case "$1" in case "$1" in
down) wifi_updown "disable" "$2";; down) wifi_updown "disable" "$2";;