From 11ecff91d495e5d3ae62e5057379df1f9a29de45 Mon Sep 17 00:00:00 2001 From: phamt Date: Tue, 5 Mar 2013 15:32:24 +0000 Subject: [PATCH] Fixed post-script to echo default gateway to /etc/sysconfig/network/routes file in mkay4z script. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15388 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/scripts/mkay4z | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/scripts/mkay4z b/xCAT-server/share/xcat/scripts/mkay4z index ed3e8cceb..67c105ffd 100644 --- a/xCAT-server/share/xcat/scripts/mkay4z +++ b/xCAT-server/share/xcat/scripts/mkay4z @@ -1293,7 +1293,7 @@ sub createScripts { # Do not set default route for DHCP interface if(!$script && !($interfaces{$i}{'bootproto'} eq 'dhcp')) { $script .= < /etc/sysconfig/network/routes +echo "default $interfaces{$i}{'gateway'} - -" > /etc/sysconfig/network/routes END last; }