A/UX 2.0.1: Solution for "syschk" Error Problem

I'm having a problem with the System Checker disk of the A/UX v2.0.1
release: the shell script syschk is not executable (protection 444 instead
of 555). I changed the protection to the right value and then I got an
error message when running the syschk command: "Message too long".


We have verified the problem.  The 'syschk' Korn Shell script file in the
A/UX 2.0.1 distributed System Checker disk seems to be missing some "echo"
statements before the displayed error message.  The echo statements should
be inserted before the displayed message, around lines 145 and 168 in the
syschk script file.  They should be changed to the following:

          if [-n $noopt"]; then
          echo "\\n             <================ inserted
      Error - insufficient room in / partition.
      At least $need more free blocks needed to install optional files.
      Optional file (manuals, games) disregarded in calculations.
          "                    <================ inserted

          if [-n $noopt"]; then
          echo "\\n             <================ inserted
      Error - insufficient room in /usr partition.
      At least $usrneed more free blocks needed to install optional files.
      Optional file (manuals, games) disregarded in calculations.
          "                    <================ inserted


Note: If the script was written in Korn Shell not Bourne Shell, use 'ksh
syschk' instead of 'sh syschk'.  The 'syschk' file is unnecessarily changed
to executable if it is invoked by 'ksh syschk'.  The "Message too long"
message results from the Bourne Shell.


Published Date: Feb 18, 2012