# Shell script to set up usr when no RAM disk is being used.
cd /usr

if test -d bin; then : ; else echo Cannot find /usr/bin; exit 1; fi
if test -d lib; then : ; else echo Cannot find /usr/lib; exit 1; fi
if test -d src; then : ; else echo Cannot find /usr/src; exit 1; fi
if test -d tmp; then : ; else echo Cannot find /usr/tmp; exit 1; fi
if test -d include; then : ; else echo Cannot find /usr/include; exit 1; fi

mkdir dev etc usr usr/tmp 2>/dev/null

cd /etc
cp * /usr/etc

cd /usr/dev
/etc/mkdev
echo "You may wish to rm /usr/dev/ram and /usr/dev/hd* and remake them with sizes."
echo "It is not required however.  Installing sizes is only affects a few"
echo "programs that sequentially read entire partitions, such as 'readall'"

cd /usr
mv lib usr/lib
mv src usr/src
mv adm usr/adm
mv ast usr/ast
mv doc usr/doc
mv man usr/man
mv spool usr/spool
mv include usr/include
mv bin usr/bin
mkdir bin
cd /bin
cp * /usr/bin
PATH=$PATH:/usr/usr/bin
cd /usr/usr/bin
fixbin /usr/bin /usr/bin >/dev/null 2>&1
fixbin /usr/usr/bin /usr/usr/bin >/dev/null 2>&1
