|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: S T U
Length: 1769 (0x6e9)
Types: TextFile
Notes: UNIX file
Names: »SetUp«
└─⟦50c223e0a⟧ Bits:30004042/network1.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦50c223e0a⟧ UNIX Filesystem
└─⟦this⟧ »bn/new/usr/lib/uucp/SetUp«
#!/bin/sh
#ident "@(#)uucp:SetUp 2.3"
# This shell tries to set up all needed uucp system files.
# Since the names changed from previous versions, it copies those.
# For the Permissions, it will generate one if none exists
LIB=$ROOT/usr/lib/uucp
PERM=$LIB/Permissions
LPERM=$LIB/PERMISSIONS
DEVICES=$LIB/Devices
DIAL=$LIB/Dialcodes
DIALERS=$LIB/Dialers
SYSTEM=$LIB/Systems
LSYS=$LIB/L.sys
LDIAL=$LIB/L-dialcodes
LDEVICES=$LIB/L-devices
LDIALERS=$LIB/L-dialers
POLL=$LIB/Poll
DEVCONFIG=$LIB/Devconfig
SYSFILES=$LIB/Sysfiles
UUCP=uucp
if [ ! -f $SYSTEM ]
then
if [ -f $LSYS ]; then
cp $LSYS $SYSTEM
else
cp Systems ${SYSTEM}
fi
chown $UUCP $SYSTEM
chmod 400 $SYSTEM
fi
if [ ! -f $DIAL ]; then
if [ -f $LDIAL ]; then
cp $LDIAL $DIAL
else
cp Dialcodes ${DIAL}
fi
chown $UUCP $DIAL
chmod 444 $DIAL
fi
if [ ! -f $DIALERS ]; then
if [ -f $LDIALERS ]; then
cp $LDIALERS $DIALERS
else
cp Dialers $DIALERS
fi
chown $UUCP $DIALERS
chmod 444 $DIALERS
fi
if [ ! -f $DEVICES ]; then
if [ -f $LDEVICES ]; then
cp $LDEVICES $DEVICES
else
cp Devices ${DEVICES}
fi
chown $UUCP $DEVICES
chmod 444 $DEVICES
fi
if [ ! -f $POLL ]; then
cp Poll ${POLL}
chown $UUCP $POLL
chmod 644 $POLL
fi
if [ ! -f $DEVCONFIG ]; then
cp Devconfig $DEVCONFIG
chown $UUCP $DEVCONFIG
chmod 644 $DEVCONFIG
fi
if [ ! -f $SYSFILES ]; then
cp Sysfiles $SYSFILES
chown $UUCP $SYSFILES
chmod 644 $SYSFILES
fi
if [ ! -f $PERM ]; then
if [ -f $LPERM ]; then
cp $LPERM $PERM
chown $UUCP $PERM
chmod 400 $PERM
fi
fi
if [ -f $PERM ]; then
exit
fi
# Try to generate a Permissions file using uucp entries in /etc/passwd
> $PERM
set - `sed -n "/uucico/s/:.*//p" /etc/passwd`
for i
do
echo "\tLOGNAME=$i\n"
done > $PERM
chown $UUCP $PERM
chmod 400 $PERM