|
|
DataMuseum.dkPresents historical artifacts from the history of: ICL Comet 32 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about ICL Comet 32 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 783 (0x30f)
Types: TextFile
Notes: UNIX file
Names: »nu2.sh«
└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
└─⟦28c352965⟧ »/a« UNIX Filesystem
└─⟦this⟧ »etc/nulib/nu2.sh«
#! /bin/csh -f
# This shell script is called from nu to initialize the contents of a
# newly-created user's directory.
#
# it is named "nu2.sh" instead of something like "addfiles.sh" to discourage
# people from trying to run it standalone, without going through nu.
#
# Created: 25 Aug 84 Brian Reid
set logindir=$1
set uid=$2
set gid=$3
set wantMHsetup=$4
set debug=$5
set noglob; set path=(/etc $path); unset noglob
# set verbose
cd $logindir
cp /usr/skel/.[a-z]* .
if ($wantMHsetup) then
mkdir Mail
mkdir Mail/inbox
cp /usr/skel/Mail/inbox/* Mail/inbox
if ($debug == 0) chown $uid Mail Mail/* Mail/inbox/*
if ($debug == 0) chgrp $gid Mail Mail/* Mail/inbox/*
chmod 0711 Mail
endif
if ($debug == 0) chown $uid .[a-z]*
if ($debug == 0) chgrp $gid .[a-z]*