osver() support debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15267 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5a21746fe8
commit
a5a4feb798
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user