2009-05-01 15:11:40 +01:00
|
|
|
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
2011-06-29 19:46:31 -04:00
|
|
|
# Released under the 2-clause BSD license.
|
2007-11-14 15:22:04 +00:00
|
|
|
|
2008-01-11 15:08:57 +00:00
|
|
|
ssidnet_depend()
|
|
|
|
{
|
2007-04-05 11:18:42 +00:00
|
|
|
before interface system
|
|
|
|
after wireless
|
|
|
|
}
|
|
|
|
|
2008-01-11 15:08:57 +00:00
|
|
|
ssidnet_pre_start()
|
|
|
|
{
|
2007-04-05 11:18:42 +00:00
|
|
|
[ -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
|
|
|
|
}
|