2009-05-01 19:41:40 +05:30
|
|
|
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
2011-06-30 05:16:31 +05:30
|
|
|
# Released under the 2-clause BSD license.
|
2007-11-14 20:52:04 +05:30
|
|
|
|
2008-01-11 20:38:57 +05:30
|
|
|
ssidnet_depend()
|
|
|
|
{
|
2007-04-05 16:48:42 +05:30
|
|
|
before interface system
|
|
|
|
after wireless
|
|
|
|
}
|
|
|
|
|
2008-01-11 20:38:57 +05:30
|
|
|
ssidnet_pre_start()
|
|
|
|
{
|
2007-04-05 16:48:42 +05:30
|
|
|
[ -z "${SSID}" -a -z "${SSIDVAR}" ] && return 0
|
|
|
|
|
|
|
|
local mac=$(_get_ap_mac_address | sed -e 's/://g') x=
|
|
|
|
|
|
|
|
vebegin "Configuring ${IFACE} for SSID ${SSID}"
|
|
|
|
_configure_variables "${mac}" "${SSIDVAR}"
|
|
|
|
|
|
|
|
# Backwards compat for old gateway var
|
|
|
|
eval x=\$gateway_${SSIDVAR}
|
|
|
|
[ -n "${x}" ] && gateway=${x}
|
|
|
|
|
|
|
|
veend 0
|
|
|
|
}
|