#!/usr/bin/perl ($Revision,$RevisionDate) = ('$Id: JBCheck,v 1.13 2001/10/19 15:42:28 joi Exp $' =~ /v ([\d+\.]+) (\d+\/\d+\/\d+) /); $DEBUG=0; @notInterestingList = ("Red Hat 6.2"); # mostly for my reference. Not used in code yet. $Interesting = 1; # controls the appearance of the usageLog string at the end of the log. $sawJB4IBMWarning = 0; $sawGETNEWJVM=0; $warningCount=0; @summary = (); $WARNING = "\n------------------------------------------------------------------------------\n" . "WARNING"; $dashLine = < /bin/bash symlink"); print <; close(FSTAB); my @iso = grep(/iso/,@foo); print "\nDEBUG: ", @iso if $DEBUG; if (scalar @iso == 0 ) { print "Oops!\n"; $warningCount++; push(@summary,"If installing from cdrom, mount -t iso9660 or fix /etc/fstab"); print <; close(ISSUE); print "\nDEBUG: ", @issue if $DEBUG; if ( &checkRedHat() ) { } elsif ( &checkMandrake() ) { } else { print "Unrecognized distribution.\n"; print "/etc/issue contains:\n", @issue, "\n"; } } else { print "Unable to read /etc/issue\n"; } } sub checkRedHat { my $foo = join("",grep(/Red Hat/,@issue)); $isRedHat = 1 if $foo; ($RedHatRelease) = ($foo =~ /\s+([\d\.]+)/); if ($isRedHat) { print " release $RedHatRelease\n"; } else { return 0; } if ($RedHatRelease eq "7.0") { $warningCount++; push(@summary,"Update glibc packages from Red Hat."); print <&1`; $javaversion = join("", @java); print "Found one...\n"; $warningCount++; push(@summary,"$java on path, may confuse installers or conflict with JBuilder. \n\tTo force its use, try \"./install.bin LAX_VM $java\""); print <