# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright 1993-2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # #ident "%Z%%M% %I% %E% SMI" # Remove the 'gk' account echo "Removing 'gk' account" ed $BASEDIR/etc/passwd </dev/null 1,\$g/^gk:/d 1,\$p w q EOF ed $BASEDIR/etc/shadow </dev/null 1,\$g/^gk:/d 1,\$p w q EOF # Remove gk's .make.machines file. echo "Removing .make.machines"; rm -f $BASEDIR/opt/onbld/gk/.make.machines > /dev/null 2>&1; # Remove root's link to gk's .make.machines file. /usr/bin/test -L $BASEDIR/.make.machines ; if [ "$?" = "0" ]; then rm -f $BASEDIR/.make.machines > /dev/null 2>&1; fi # Restore previous ~gk/.make.machines, if it exists. mv $BASEDIR/opt/onbld/gk/.make.machines.orig \ $BASEDIR/opt/onbld/gk/.make.machines > /dev/null 2>&1; # Restore previous /.make.machines, if it exists. mv $BASEDIR/.make.machines.orig $BASEDIR/.make.machines > /dev/null 2>&1; exit 0;