From 4ac1c3288c07a66dd8605151420e517117a0fb59 Mon Sep 17 00:00:00 2001 From: linggao Date: Wed, 19 May 2010 14:15:48 +0000 Subject: [PATCH] minor fix git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6172 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/AAsn.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index ee0f232e1..07dccaa1a 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -1255,21 +1255,21 @@ sub setup_HTTP #----------------------------------------------------------------------------- sub setup_ip_forwarding { + my $rc=0; if (xCAT::Utils->isLinux()) { my $conf_file="/etc/sysctl.conf"; - my $rc=`grep "net.ipv4.ip_forward" $conf_file`; + $rc=`grep "net.ipv4.ip_forward" $conf_file`; if ($? == 0) { `sed -i "s/^net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/" $conf_file`; } else { `echo "net.ipv4.ip_forward = 1" >> $conf_file`; } $rc = `sysctl -p $conf_file`; - return $rc; } else { #AIX: TODO } - + return $rc; }