DataMuseum.dk

Presents historical artifacts from the history of:

ICL Comet 32

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about ICL Comet 32

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦fbf290c10⟧ TextFile

    Length: 842 (0x34a)
    Types: TextFile
    Notes: UNIX file
    Names: »nuconf«

Derivation

└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
    └─⟦28c352965⟧ »/a« UNIX Filesystem
        └─⟦this⟧ »sys/build/nuconf« 

TextFile

# This file is sourced

cp $subs/group /tmp/group
cp $subs/nu.cf /tmp/nu.cf

echo DefaultGroup="$defgroup" >> /tmp/nu.cf
echo DefaultHome=\""$defhome"\" >> /tmp/nu.cf
makedir $defhome
if ($status) then
	echo "Cannot create default group home directory $defhome"
endif

foreach g ($groups)
	set line = ( `echo $g | sed -e 's/:/ /g'` )
	if ($line[2] >= 50) then
		echo "${line[1]}:*:${line[2]}:" >> /tmp/group
	endif
	echo GroupHome= "$line[2]" \""$line[3]"\" >> /tmp/nu.cf
	makedir $line[3]
	if ($status) then
		echo "Cannot create group $line[1] home directory $line[3]"
	endif
end

echo ""
echo "Here's the proposed groups file /etc/group:"
sleep 5
wrfile wrgroup /tmp/group /etc/group
if ($status) exit(1)
echo ""
echo "Here's the proposed nu configuration file /etc/nu.cf:"
sleep 5
wrfile wrnucf /tmp/nu.cf /etc/nu.cf
if ($status) exit(1)