sync from trunk

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15423 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2013-03-08 03:02:07 +00:00
parent 2451236800
commit 10e6ad65a4

View File

@ -633,6 +633,20 @@ sub osver
}
}
}
elsif (-f "/etc/debian_version") #possible debian
{
if (open($relfile, "<", "/etc/issue")){
$line = <$relfile>;
if ( $line =~ /debian.*/i){
$os = "debian";
my $relfile1;
open($relfile1, "<", "/etc/debian_version");
$ver = <$relfile1>;
close($relfile1);
}
close($relfile);
}
}
$os = "$os" . "," . "$ver";
return ($os);
}