aboutsummaryrefslogtreecommitdiff
path: root/net/ssidnet.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/ssidnet.sh')
-rw-r--r--net/ssidnet.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/net/ssidnet.sh b/net/ssidnet.sh
new file mode 100644
index 00000000..379e4d38
--- /dev/null
+++ b/net/ssidnet.sh
@@ -0,0 +1,24 @@
+# Copyright 2004-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+ssidnet_depend() {
+ before interface system
+ after wireless
+}
+
+ssidnet_pre_start() {
+ [ -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
+}
+
+# vim: set ts=4 :