/[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 859 Revision 860
45# bool macchanger_pre_start(char *iface) 45# bool macchanger_pre_start(char *iface)
46# 46#
47# Configures the MAC address for iface 47# Configures the MAC address for iface
48macchanger_pre_start() { 48macchanger_pre_start() {
49 local iface=${1} mac opts 49 local iface=${1} mac opts
50
51 interface_exists ${iface} true || return 1
52
50 local ifvar=$( interface_variable ${1} ) 53 local ifvar=$( interface_variable ${1} )
51 54
52 eval mac=\"\$\{mac_${ifvar}\}\" 55 eval mac=\"\$\{mac_${ifvar}\}\"
53 [[ -z ${mac} ]] && return 0 56 [[ -z ${mac} ]] && return 0
54 57

Legend:
Removed from v.859  
changed lines
  Added in v.860

  ViewVC Help
Powered by ViewVC 1.1.20