1 |
snetram |
1.1 |
diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/sysconfig/network-scripts/ifcfg-ethX/10HWADDR.fix-template-expansion-error e-smith-base-5.2.0/root/etc/e-smith/templates/etc/sysconfig/network-scripts/ifcfg-ethX/10HWADDR |
2 |
|
|
--- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/sysconfig/network-scripts/ifcfg-ethX/10HWADDR.fix-template-expansion-error 2010-02-14 11:33:04.000000000 +0100 |
3 |
|
|
+++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/sysconfig/network-scripts/ifcfg-ethX/10HWADDR 2010-02-14 11:35:10.000000000 +0100 |
4 |
|
|
@@ -2,10 +2,6 @@ |
5 |
|
|
$OUT = ""; |
6 |
|
|
return if ($InternalInterface{Name} eq "bond0"); |
7 |
|
|
if ($THIS_DEVICE =~ /^eth[01]$/) |
8 |
|
|
- { |
9 |
|
|
- $OUT .= "HWADDR=" . ( |
10 |
|
|
- ($is_internal) ? |
11 |
|
|
- $InternalInterface{HWAddress} : $ExternalInterface{HWAddress} |
12 |
|
|
- ); |
13 |
|
|
- } |
14 |
|
|
+ my $hwaddr = $is_internal ? $InternalInterface{HWAddress} : $ExternalInterface{HWAddress}; |
15 |
|
|
+ $OUT .= "HWADDR=$hwaddr" if $hwaddr; |
16 |
|
|
} |