[LON-CAPA-admin] 64 bit
Michael W Edwards
mwedward at uiuc.edu
Tue Oct 26 15:36:44 EDT 2004
Guy,
Here's the diff I got on my distprobe which I just created, granted this
merely will identify a suse or sles machine, we'd also need a way to
pickup 64bitness (most reliable might be via a uname -p) so the correct
tth.so could be applied. I have not tested this distprobe on a regular
SuSE Linux machine I just checked what was in the /etc/SuSE-release file
to get the regexp.
test-srv1:/src/eval/loncapa-1.2.1/loncom/build # diff ./distprobe
/src/distprobe
58a59,71
> } elsif (-e '/etc/SuSE-release') {
> open(IN,'</etc/SuSE-release');
> my $versionstring=<IN>;
> chomp($versionstring);
> close(IN);
> if ($versionstring =~ /^SUSE LINUX Enterprise Server ([\d\.]+) /)
{
> $dist='sles'.$1;
> } elsif ($versionstring =~ /^SuSE Linux ([\d\.]+) /) {
> $dist = 'suse'.$1;
> } else {
> warn('Unable to interpret /etc/SuSE-release '.
> 'to determine system type');
> }
60c73
< warn('Unknown installation: expecting a debian or redhat system');
---
> warn('Unknown installation: expecting a debian, suse, or redhat
system');
Mike Edwards
ATLAS
University of Illinois Urbana Champaign
More information about the LON-CAPA-admin
mailing list