/[baselayout]/branches/rc-scripts-1_6/net-scripts/net.modules.d/macchanger
Gentoo

Diff of /branches/rc-scripts-1_6/net-scripts/net.modules.d/macchanger

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 713 Revision 716
46# bool macchanger_pre_start(char *iface) 46# bool macchanger_pre_start(char *iface)
47# 47#
48# Configures the MAC address for iface 48# Configures the MAC address for iface
49macchanger_pre_start() { 49macchanger_pre_start() {
50 local iface=${1} mac opts e old_mac new_mac 50 local iface=${1} mac opts e old_mac new_mac
51 local ifvar=$( interface_variable ${1} )
51 52
52 eval mac=\"\$\{mac_${iface}\}\" 53 eval mac=\"\$\{mac_${ifvar}\}\"
53 [[ -z ${mac} ]] && return 0 54 [[ -z ${mac} ]] && return 0
54 55
55 mac=$( echo ${mac} | tr '[:lower:]' '[:upper:]' ) 56 mac=$( echo ${mac} | tr '[:lower:]' '[:upper:]' )
56 case "${mac}" in 57 case "${mac}" in
57 # specific mac-addr, i wish there were a shorter way to specify this 58 # specific mac-addr, i wish there were a shorter way to specify this

Legend:
Removed from v.713  
changed lines
  Added in v.716

  ViewVC Help
Powered by ViewVC 1.1.20