#!/sbin/sh
#
# Granada Microcare Helpdesk
#
# mkarchive... A shell script to create an archive containing enough
# utilities to bring a single user 260 up into muti-user mode and to mount
# remote filesystems.

cat << INTRO
                          -- mkarchive --

 > This script will create a floppy containing files needed to bring
 > up RISCiX multi-user and to mount the network.
 >
 > The script uses dsplit to create an archive. This will occupy one disc
 > initially but may be extended by editing this script. Insert the first
 > archive disc and press Return to continue.....
 >
 >    ( Type any character key/s followed by Return to abort  )

INTRO

read STRING
echo
if [ ${STRING}X != "X" ]
then
     echo; echo $0 aborted; echo
     exit 1
fi

# Only Return has been pressed so go ahead and make the archive disc...

cd /
echo; echo " > Creating dsplit archive..." ; echo

# To extend the number of files archived simply add them to this
# file list. Be sure to give FULL pathnames ( starting with a / )
# and escape all except the final end of line with a \ character.

tar cf - /usr/sbin/getty /etc/gettytab /etc/rc /etc/rc.net /etc/ttys \
/etc/rc.config /sbin/mkdir /sbin/hostname /sbin/test /sbin/fsck sbin/stty \
/sbin/ifconfig /sbin/restore /sbin/ps /sbin/cp /sbin/rm sbin/mv \
/usr/bin/login /usr/bin/kill /usr/bin/rmdir /usr/bin/sh \
/usr/bin/df /usr/share/lib/termcap /usr/bin/pwd /usr/bin/vi /usr/bin/hostid \
/usr/ucb/more /usr/ucb/rlogin /usr/ucb/rcp /usr/ucb/rusers /usr/ucb/ftp \
/usr/sbin/ping /usr/bin/csh /etc/services /dev/MAKEDEV  \
| compress | dsplit -ft ARCHIVE

cat << FINISHED

 > Archive disc successfully created. Note that in future this
 > disc will be referred to as the 'Archive disc' and you may 
 > wish to label it accordingly...........

FINISHED

#      ================= END OF SCRIPT =====================
