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.6
- ## delta: 1/11/92 15:04:19
- ##
-
- TMP=/tmp/$$
-
- #if /usr/ucb/whoami | /bin/grep -v -w "root" >/dev/null
- #then
- # echo You must be root to install NUC.
- # exit 1
- #fi
-
-
-
- #
- # Adjust path to look at /usr/netware/bin and
- # /usr/netware/etc first.
- #
-
- echo Adjusting your path.
- CSHRC=/.cshrc
- OLDPATH=`/bin/grep 'path=(.*)' $CSHRC`
- if echo $OLDPATH | /bin/grep "/usr/netware/bin" >/dev/null
- then :
- else
- cp $CSHRC $CSHRC.old
- /bin/sed '/path=/a\
- # Begin NUC addition.\
- set path=(/usr/netware/bin /usr/netware/etc $path)\
- # End NUC addition.
- ' $CSHRC.old > $CSHRC
- fi
-
-
- #
- # Make the special device files needed by NUC.
- #
- echo Making NUC special device files.
- if [ ! -f /usr/netware/bin/mknods ]
- then
- echo $0:FATAL error! /usr/netware/bin/mknods does not exist.
- exit 1
- fi
-
- if /usr/netware/bin/mknods
- then :
- else
- echo mknods failed. Exiting.
- exit 1
- fi
-
-
- #
- # Add call to rc.nuc to the end of /etc/rc.local if
- # it's not already there.
- #
- #echo Updating /etc/rc.local.
- #if /bin/grep "rc.nuc" /etc/rc.local > /dev/null
- #then :
- #else
- #echo "# Begin NUC addition.
- #if [ -f /usr/netware/etc/rc.nuc ] ; then
- # (/usr/netware/etc/rc.nuc) > /dev/console
- #fi
- # End NUC addition." >> /etc/rc.local
- #fi
-
-
-
- # NeXT mod. - eliminate updating of mounter strings
- #echo Updating Mounter.strings
- #if /bin/grep "NetWare" /usr/lib/NextStep/Workspace.app/WorkspaceStrings/Mounter.strings > /dev/null
- #then :
- #else
- #mv /usr/lib/NextStep/Workspace.app/WorkspaceStrings/Mounter.strings /tmp/bird
- #/bin/sed 's/"bizarre"/"bizarre" = "NetWare"/' /tmp/bird > #/usr/lib/NextStep/Workspace.app/WorkspaceStrings/Mounter.strings
- #fi
-
- echo NUC installation completed sucessfully.
-