Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ idcheck(1M) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

idinstall(1M)

mdevice(4)

sdevice(4)

idcheck(1M)                                                     idcheck(1M)

NAME
     idcheck - returns selected information

SYNOPSIS
     /etc/conf/bin/idcheck

DESCRIPTION
     This command returns selected information about the system configura-
     tion. It is useful in add-on device Driver Software Package (DSP) ins-
     tallation scripts to determine if a particular device driver has
     already been installed. The forms are:

          idcheck -p device-name [-i dir]

          idcheck -y device-name [-i dir]

     This command scans the System and Master modules and returns:

     100  if an error occurs

     0    if no conflict exists

     a positive number greater than 0 and less than 100
          if a conflict exists.

OPTIONS
     -p device-name
          This option checks for the existence of four different components
          of the DSP. The exit code is the addition of the return codes
          from the four checks.

          Add 1 to the exit code if the DSP directory under
          /etc/conf/pack.d exists.

          Add 2 to the exit code if the Master module has been installed.

          Add 4 to the exit code if the System module has been installed.

          Add 8 to the exit code if the Kernel was built with the System
          module.

          Add 16 to the exit code if a Driver.o, or a SPDriver.o and
          MPDriver.o, are part of the DSP (vs. a stubs.c file).

     -y device-name
          This option checks to see if the DSP will be configured into the
          next kernel to be built.

     -i dir
          Specifies the directory in which the files sdevice and mdevice
          reside. The default directory is /etc/conf/cf.d.




Page 1                       Reliant UNIX 5.44                Printed 11/98

idcheck(1M)                                                     idcheck(1M)

DIAGNOSTICS
     There are no error messages or checks for valid arguments to options.
     idcheck interprets these arguments using the rules of scanf(3S) and
     queries the sdevice and mdevice files. For example, if a letter is
     used in the place of a digit, scanf(3S) will translate the letter to
     0. idcheck will then use this value in its query.

SEE ALSO
     idinstall(1M), mdevice(4), sdevice(4).













































Page 2                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026