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
This commit is contained in:
daniceexi 2012-12-05 02:58:48 +00:00
parent 4ae17a6571
commit da2a14fa69

View File

@ -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;