|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T U
Length: 2545 (0x9f1)
Types: TextFile
Notes: UNIX file
Names: »UNINSTALL«
└─⟦104d96909⟧ Bits:30004765 SW95718I UNIX LAN Server Rel. 1.1
└─⟦104d96909⟧ UNIX Filesystem
└─⟦this⟧ »install/UNINSTALL«
└─⟦12e2d81bc⟧ Bits:30004155/disk1.imd SW95713I 386/ix Software Development System Rel. 2.0
└─⟦12e2d81bc⟧ UNIX Filesystem
└─⟦this⟧ »install/UNINSTALL«
#
# Copyrighted as an unpublished work.
# (c) Copyright 1987 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 "@(#)UNINSTALL.sh 2.2 - 88/09/02"
#
# Get the packages on this diskette
#
CONF=/etc/conf
INSPATH=/install
ERROR="An error was encountered during removing the driver, package removal failed"
cwd=`pwd`
cd $INSPATH
set `ls -d ??`
cd $cwd
nbrpkgs=$#
if [ "$nbrpkgs" -eq "1" ]
then
pkgs=$1
else
pkgs="$*"
fi
for pkg in $pkgs
do
PKGNAME=`cut -f1 -d'-' /install/$pkg/install/$pkg.name`
FREL=`cut -f2 -d'-' /install/$pkg/install/$pkg.name`
if [ -s /usr/options/$pkg.name ]
then
HREL=`cut -f2 -d'-' /usr/options/$pkg.name`
else
HREL=$FREL
fi
if [ "$FREL" != "$HREL" ]
then
echo "\nThe Version of $PKGNAME on the hard disk"
echo "is $HREL, which is different than the"
echo "Version on this floppy ($FREL)"
echo "The wrong files may be removed."
fi
echo Remove the ${PKGNAME:-$pkg} package? "(y): \c"
read resp
[ "$resp" = "n" -o "$resp" = "N" ] && continue
#
# Remove drivers before unsetup calls kconfig
#
if [ -f /install/$pkg/install/drivers ]
then
echo "The following driver(s) is being removed:"
cat /install/$pkg/install/drivers | while read dname
do
echo "\t$dname"
${CONF}/bin/idcheck -p $dname >/dev/null 2>&1
if [ $? != 0 ]
then
if [ -f ${CONF}/pack.d/$dname/stubs.c ]
then
${CONF}/bin/idinstall -gs $dname | \
sed -e 's/Y/N/' >System
${CONF}/bin/idinstall -eus $dname
${CONF}/bin/idinstall -dopnirhclz $dname >/dev/null 2>&1
else
${CONF}/bin/idinstall -d $dname >/dev/null 2>&1
fi
if [ $? != 0 ]
then
echo $ERROR
exit 1
fi
fi
done
fi
#
# Remove linked files and invoke unsetup file
#
[ -f /install/$pkg/install/unlink ] && /bin/sh /install/$pkg/install/unlink
[ -f /install/$pkg/install/unsetup ] && /bin/sh /install/$pkg/install/unsetup
#
# Remove the files found in the Rlist file from the hard disk.
#
echo "The following files are being removed:"
for i in `cat /install/$pkg/install/Rlist.$pkg`
do
echo $i
rm -fr $i
done
echo "The ${PKGNAME} has been removed."
done