osver support on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14774 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e1da3e4124
commit
e50efd16db
@ -2163,6 +2163,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