From a42fbc5bd05505bc4c990c545bb51fe57529d5ba Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 26 Apr 2015 15:28:09 -0700 Subject: [PATCH] Param for MAC address is actually hwaddress https://sourceforge.net/p/webadmin/bugs/4589/ --- net/debian-linux-lib.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/debian-linux-lib.pl b/net/debian-linux-lib.pl index 5d23213eb..4acfc16b2 100755 --- a/net/debian-linux-lib.pl +++ b/net/debian-linux-lib.pl @@ -67,7 +67,7 @@ foreach $iface (@ifaces) { elsif($param eq 'slaves') { $cfg->{'partner'} = $value; } - elsif($param eq 'hwaddr') { + elsif($param eq 'hwaddress' || $param eq 'hwaddr') { local @v = split(/\s+/, $value); $cfg->{'ether_type'} = $v[0]; $cfg->{'ether'} = $v[1]; @@ -176,8 +176,9 @@ my @autos = get_auto_defs(); my $amode = $gconfig{'os_version'} > 3 || scalar(@autos); if (!$cfg->{'up'} && !$amode) { push(@options, ['noauto', '']); } if ($cfg->{'ether'}) { - push(@options, [ 'hwaddr', ($cfg->{'ether_type'} || 'ether').' '. - $cfg->{'ether'} ]); + push(@options, [ 'hwaddress', + ($cfg->{'ether_type'} || 'ether').' '. + $cfg->{'ether'} ]); } if ($cfg->{'bridge'}) { &has_command("brctl") || &error("Bridges cannot be created unless the ".