|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: @ T d
Length: 1101 (0x44d)
Types: TextFile
Notes: @(#)delmenu.sh 13.1 (RC International) 91/07/25
Names: »delmenu«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦97ad7467e⟧ »0005«
└─⟦this⟧ »./home/vmsys/bin/delmenu«
# @(#)delmenu.sh 13.1 (RC International) 91/07/25
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# All Rights Reserved
# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.
#ident "@(#)face:src/vinstall/delmenu.sh 1.3"
trap 'rm -f $VMSYS/OBJECTS/.Lserve ; exit 0' 1 2 15
error ()
{
echo "$1"; rm -f ${VMSYS}/OBJECTS/.Lserve; exit 1
}
# set VMSYS so that Menu.programs file can be updated if installed.
VMSYS=`sed -n -e '/^vmsys:/s/^.*:\([^:][^:]*\):[^:]*$/\1/p' /etc/passwd`
export VMSYS
if [ ! -d "${VMSYS}" ]
then
error "Can't find home directory for vmsys"
fi
if [ ! -f ${VMSYS}/OBJECTS/.Lserve ]
then
>${VMSYS}/OBJECTS/.Lserve
else
error "Can't update ${VMSYS}/lib/services file because it is LOCKED!!!"
fi
svc=name=\"${1}\"
/bin/grep -v "$svc" $VMSYS/lib/services > /tmp/f.rm.$$ 2>/dev/null || error "Can't access $VMSYS/lib/services"
cp /tmp/f.rm.$$ $VMSYS/lib/services || error "Can't access $VMSYS/lib/services"
rm -f /tmp/f.rm.$$
rm -f ${VMSYS}/OBJECTS/.Lserve
exit 0