DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦5fffc7044⟧ TextFile

    Length: 2008 (0x7d8)
    Types: TextFile
    Notes: UNIX file
    Names: »iemcheck«

Derivation

└─⟦0cfe73749⟧ Bits:30004154/config.imd SW95707I VP/ix MS-DOS emulator Rel. 1.1
└─⟦0cfe73749⟧ UNIX Filesystem
    └─⟦this⟧ »vc/new/usr/vpix/etc/iemcheck« 

TextFile

#
#  Copyrighted as an unpublished work.
#  (c) Copyright 1988 INTERACTIVE Systems Corporation
#  All rights reserved.
#
#  RESTRICTED RIGHTS
#
#  These programs are supplied under a license.  They may be used,
#  disclosed, and/or copied only as permitted under such license
#  agreement.  Any copy must contain the above copyright notice and
#  this restricted rights notice.  Use, copying, and/or disclosure
#  of the programs is strictly prohibited unless otherwise provided
#  in the license agreement.
#

#ident  "@(#)iemcheck	1.1 - 88/07/27"

# perform various checks on behalf of other IEM-related scripts:
#
#   1: is our effective UID "root"?
#   2: is VP/ix installed?
#   3. are we running version 1.0.8 or later?
#
#   Returns 0 if all is OK, 1 if interrupted, or if we fail a check


trap 'exit 1' 1 2 3 9 15

BIN=/usr/vpix/etc

# make sure our EUID is "root"

${BIN}/ectuid
if [ $? -ne 0 ]
then
    echo You do not have permission to perform this operation.
    echo Please try again after logging-on as \"root\", or \"sysadm\".
    exit 1
fi

# make sure VP/ix is installed

if [ ! -s /usr/options/vp.name ]
then
    echo The VP/ix Environment has not been installed on your system.
    echo Please use Sysadm to install the VP/ix Environment.
    exit 1
fi

# check that version number is 1.1.0 or greater


# initialize status flag (1 = OK)
# get the version number

versionOK=1
version=`cat /usr/options/vp.name | sed -e 's/.*ersion *//'`

# check major number

major=`expr $version : '\([0-9]*\).*'`

# if major number is 1, check minor

if [ $major -eq 1 ]
then
    minor=`expr $version : '[0-9]*\.\([0-9]*\).*'`

    # if minor is 0, we don't have the right version

    if [ $minor -eq 0 ]
    then
	versionOK=0
    fi
fi

if [ $versionOK -eq 0 ]
then
    echo You must be running at least version 1.1.0 of The VP/ix Environment
    echo in order to perform this operation.
    echo Please try again after upgrading your system.
    exit 1
fi

# all was OK - return success

exit 0