From da2a14fa6957b140687a37e50207969a029637a5 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 5 Dec 2012 02:58:48 +0000 Subject: [PATCH] fixed the issue that tftp could not be started on sles10 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14552 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/AAsn.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index d7b05ead0..96e93200c 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -1480,6 +1480,10 @@ sub enable_TFTPhpa # get the version of TCP/IP protocol my $protocols; my $v4only="-4 "; + if (xCAT::Utils->osver() =~ /^sle[sc]10/) { + $v4only = ""; + } + open($protocols,"<","/proc/net/protocols"); if ($protocols) { my $line;