|
|
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: R T U
Length: 2447 (0x98f)
Types: TextFile
Notes: UNIX file
Names: »Remove«
└─⟦f660c3862⟧ Bits:30004068/disk1.imd Interactive TCP/IP v.1.2
└─⟦f660c3862⟧ UNIX Filesystem
└─⟦this⟧ »hb/install/Remove«
CONF=/etc/conf
ERROR="An error was encountered during removing the driver, package removal \
cannot be complete"
update_desc()
{
OLD=/etc/conf/kconfig.d/description
NEW=$OLD.new
> $NEW
cat $OLD | while read line
do
echo $line | while read name others
do
[ "$name" = "$1" ] || echo "$line" >> $NEW
done
done
mv $NEW $OLD
}
echo "The following driver(s) is being removed:"
for dname in arp ec el in ip llc lo ptx pty sl socket tcp ub udp wd
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
update_desc $dname
else
${CONF}/bin/idinstall -d $dname
fi
if [ $? != 0 ]
then
echo $ERROR
exit 1
fi
fi
done
rm /etc/rc0.d/K80hbtcp
rm /etc/rc2.d/K80hbtcp
rm /etc/rc3.d/S05hbtcp
#
# Unsetup script for INTERACTIVE UNIX TCP/IP Networking Package.
#
#ident "@(#)unsetup 2.10 - 90/01/31"
CONF=/etc/conf
export CONF
echo "\n"In order to complete the removal, a new kernel must be built.
echo If you will later install or remove a package
echo that builds a new kernel, you may skip the kernel build.
while true
do
echo "\nDo you want to build a kernel without Host-Based TCP/IP [ y ] ? \c"
read answer
if [ "$answer" = "y" -o "$answer" = "Y" -o "$answer" = "" ]
then
echo "Building kernel without Host-Based TCP/IP Package..."
/etc/kconfig -l -r / <<! >/tmp/ins.$$.hb
B
!
echo "Kernel rebuilt."
kern=`fgrep "build -k" /tmp/ins.$$.hb | cut -d' ' -f4`
rm -f /tmp/ins.$$.hb
if [ -n "$kern" ]
then
echo "\n"Installing a new kernel requires a system re-boot.
echo When finished removing packages, to install the newly built kernel,
echo as user root, enter:
echo "\tcd /"
echo "\tinskern unix.$kern"
fi
break
fi
if [ "$answer" = "n" -o "$answer" = "N" ]
then
break
fi
echo "Please answer with 'y' or 'n'."
continue
done
rm /etc/hosts /etc/netd.cf /etc/hosts.equiv /etc/networks >> /dev/null 2>&1
rm /etc/protocols /etc/services /etc/resolv.conf /etc/inetd.conf >> /dev/null 2>&1
rm /etc/syslog.conf /etc/gated.conf /etc/rarpd.cf >> /dev/null 2>&1
cat <<-\! | ed -s $CONF/kconfig.d/description
g/ hbtcp /d
w
q
!
echo "The following files are being removed:"
for i in `cat /usr/lib/installed/Files/hb.name`
do
echo $i
rm -rf $i >/dev/null 2>&1
done