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
This commit is contained in:
parent
d342bab175
commit
11ecff91d4
@ -1293,7 +1293,7 @@ sub createScripts {
|
||||
# Do not set default route for DHCP interface
|
||||
if(!$script && !($interfaces{$i}{'bootproto'} eq 'dhcp')) {
|
||||
$script .= <<END;
|
||||
echo "default - 0.0.0.0 $interfaces{$i}{'device'}" > /etc/sysconfig/network/routes
|
||||
echo "default $interfaces{$i}{'gateway'} - -" > /etc/sysconfig/network/routes
|
||||
END
|
||||
last;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user