1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-base-4.18.0/root/etc/e-smith/templates/etc/sysconfig/network/40GATEWAYDEV mezzanine_patched_e-smith-base-4.18.0/root/etc/e-smith/templates/etc/sysconfig/network/40GATEWAYDEV |
2 |
--- e-smith-base-4.18.0/root/etc/e-smith/templates/etc/sysconfig/network/40GATEWAYDEV 2005-11-20 21:28:08.000000000 -0700 |
3 |
+++ mezzanine_patched_e-smith-base-4.18.0/root/etc/e-smith/templates/etc/sysconfig/net40GATEWAYDEV 2007-01-30 16:16:44.000000000 -0700 |
4 |
@@ -1,5 +1,8 @@ |
5 |
{ |
6 |
- return "" unless (defined $ExternalInterface); |
7 |
+ return "" unless (defined $ExternalInterface && defined $GatewayIP); |
8 |
|
9 |
- return "GATEWAYDEV=$ExternalInterface{Name}"; |
10 |
+ my $dev = ($ExternalInterface{Configuration} eq 'disabled') ? |
11 |
+ $InternalInterface{Name} : |
12 |
+ $ExternalInterface{Name}; |
13 |
+ return "GATEWAYDEV=$dev"; |
14 |
} |