home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3.4.17 [SPARC, PA-RISC] / nextstep33_risc.iso / usr / netware / etc / installNUC next >
Encoding:
Text File  |  1995-02-06  |  2.1 KB  |  95 lines

  1. #! /bin/sh
  2. ##
  3. ##        Copyright Novell Inc. 1991
  4. ##        (C) Unpublished Copyright of Novell, Inc. All Rights Reserved.
  5. ##
  6. ##        No part of this file may be duplicated, revised, translated, localized
  7. ##        or modified in any manner or compiled, linked or uploaded or
  8. ##        downloaded to or from any computer system without the prior written
  9. ##        consent of Novell, Inc.
  10. ##
  11. ##
  12. ##  Netware Unix Client 
  13. ##        Author: Duck
  14. ##       Created: Wed Aug 28 11:13:34 MDT 1991
  15. ##
  16. ##       SCCS ID: 1.6
  17. ##         delta: 1/11/92  15:04:19
  18. ##
  19.  
  20. TMP=/tmp/$$
  21.  
  22. #if /usr/ucb/whoami | /bin/grep -v -w "root" >/dev/null
  23. #then
  24. #    echo You must be root to install NUC.
  25. #    exit 1
  26. #fi
  27.  
  28.  
  29.  
  30. #
  31. #    Adjust path to look at /usr/netware/bin and 
  32. #    /usr/netware/etc first.
  33. #
  34.  
  35. echo Adjusting your path.
  36. CSHRC=/.cshrc
  37. OLDPATH=`/bin/grep 'path=(.*)' $CSHRC`
  38. if echo $OLDPATH | /bin/grep "/usr/netware/bin" >/dev/null
  39. then :
  40. else
  41. cp $CSHRC $CSHRC.old
  42. /bin/sed '/path=/a\
  43. # Begin NUC addition.\
  44. set path=(/usr/netware/bin /usr/netware/etc $path)\
  45. # End NUC addition.
  46. ' $CSHRC.old > $CSHRC
  47. fi
  48.  
  49.  
  50. #
  51. #    Make the special device files needed by NUC.
  52. #
  53. echo Making NUC special device files.
  54. if [ ! -f /usr/netware/bin/mknods ]
  55. then
  56.     echo $0:FATAL error! /usr/netware/bin/mknods does not exist.
  57.     exit 1
  58. fi
  59.  
  60. if /usr/netware/bin/mknods
  61. then :
  62. else
  63.     echo mknods failed.  Exiting.
  64.     exit 1
  65. fi
  66.  
  67.  
  68. #
  69. #    Add call to rc.nuc to the end of /etc/rc.local if
  70. #    it's not already there.
  71. #
  72. #echo Updating /etc/rc.local.
  73. #if /bin/grep "rc.nuc" /etc/rc.local > /dev/null
  74. #then :
  75. #else
  76. #echo "# Begin NUC addition.
  77. #if [ -f /usr/netware/etc/rc.nuc ] ; then
  78. #    (/usr/netware/etc/rc.nuc) > /dev/console
  79. #fi
  80. # End NUC addition." >> /etc/rc.local
  81. #fi
  82.  
  83.  
  84.  
  85. # NeXT mod. - eliminate updating of mounter strings
  86. #echo Updating Mounter.strings
  87. #if /bin/grep "NetWare" /usr/lib/NextStep/Workspace.app/WorkspaceStrings/Mounter.strings > /dev/null
  88. #then :
  89. #else
  90. #mv /usr/lib/NextStep/Workspace.app/WorkspaceStrings/Mounter.strings /tmp/bird
  91. #/bin/sed  's/"bizarre"/"bizarre" = "NetWare"/' /tmp/bird > #/usr/lib/NextStep/Workspace.app/WorkspaceStrings/Mounter.strings
  92. #fi
  93.  
  94. echo NUC installation completed sucessfully.
  95.