1 |
diff -Nur e-smith-base-5.8.0/root/etc/e-smith/templates/etc/sysconfig/network-scripts/route-ethX/10localroutes e-smith-base-5.8.0_bz10083/root/etc/e-smith/templates/etc/sysconfig/network-scripts/route-ethX/10localroutes |
2 |
--- e-smith-base-5.8.0/root/etc/e-smith/templates/etc/sysconfig/network-scripts/route-ethX/10localroutes 2007-01-19 22:33:20.000000000 +0100 |
3 |
+++ e-smith-base-5.8.0_bz10083/root/etc/e-smith/templates/etc/sysconfig/network-scripts/route-ethX/10localroutes 2017-02-09 12:16:16.303385445 +0100 |
4 |
@@ -20,7 +20,6 @@ |
5 |
return "# template expansion error - Could not open networks db\n"; |
6 |
} |
7 |
|
8 |
- my $index = 0; |
9 |
foreach my $network ($db->networks) |
10 |
{ |
11 |
# Skip local network |
12 |
@@ -34,10 +33,7 @@ |
13 |
|
14 |
my $netmask = $network->prop('Mask'); |
15 |
my $net = $network->key; |
16 |
- $OUT .= "ADDRESS$index=$net\n"; |
17 |
- $OUT .= "NETMASK$index=$netmask\n"; |
18 |
- $OUT .= "GATEWAY$index=$router\n"; |
19 |
- $index++; |
20 |
+ $OUT .= $net . '/' . $netmask . ' via ' . $router . "\n"; |
21 |
} |
22 |
} |
23 |
|