home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
- ##
- ## Copyright Novell Inc. 1991
- ## (C) Unpublished Copyright of Novell, Inc. All Rights Reserved.
- ##
- ## No part of this file may be duplicated, revised, translated, localized
- ## or modified in any manner or compiled, linked or uploaded or
- ## downloaded to or from any computer system without the prior written
- ## consent of Novell, Inc.
- ##
- ##
- ## Netware Unix Client
- ## Author: Duck
- ## Created: Wed Aug 28 11:13:34 MDT 1991
- ##
- ## SCCS ID: 1.5
- ## delta: 12/10/91 21:35:15
- ##
-
- delNUClines() {
- echo Fixing $1
- cp $i /tmp/$$
- awk ' BEGIN { inIt=0} \
- /Begin NUC addition/ {inIt=1} \
- {if ( !inIt) print} \
- /End NUC addition/ {inIt=0}' /tmp/$$ > $1
-
- rm /tmp/$$
- }
-
- if /usr/ucb/whoami | /bin/grep -v -w "root" >/dev/null
- then
- echo You must be root to uninstall NUC.
- exit 1
- fi
-
- FILES="/etc/rc.local $HOME/.cshrc"
-
- for i in $FILES
- do delNUClines $i
- done
-