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
|
|
|
macnet_depend()
|
|
|
|
{
|
2007-04-05 16:48:42 +05:30
|
|
|
before rename interface wireless
|
|
|
|
after macchanger
|
|
|
|
}
|
|
|
|
|
2008-01-11 20:38:57 +05:30
|
|
|
macnet_pre_start()
|
|
|
|
{
|
2007-04-05 16:48:42 +05:30
|
|
|
local mac=$(_get_mac_address 2>/dev/null)
|
|
|
|
[ -z "${mac}" ] && return 0
|
|
|
|
|
|
|
|
vebegin "Configuring ${IFACE} for MAC address ${mac}"
|
|
|
|
mac=$(echo "${mac}" | sed -e 's/://g')
|
|
|
|
_configure_variables "${mac}"
|
|
|
|
veend 0
|
|
|
|
}
|