install_in_root
737 Bytes
#!/bin/sh
#
# script to install binaries that goes into /, only for 5.3 and must be super
# user to have write permission
#
# must run as su
if test `whoami` != "root"
then
echo must be super user to run $0
exit 0
fi
# get the environment variables
. ./CHANGEME
# prompt user to make sure we don't do something bad
echo
echo
echo About to copy $PREXTRA/usr/sbin and
echo $PREXTRA/usr/lib files into /
echo
echo If this is the correct tree, type yes to continue, no to quit
read REPLY
if test $REPLY != "yes"
then
echo QUIT!!!
exit 0
fi
cp $PREXTRA/usr/sbin/* /usr/sbin
# bug in 5.3 /bsd/compress does cause build image phase to hang
cp $PREXTRA/usr/bsd/* /usr/bsd
cp -r $PREXTRA/usr/lib/* /usr/lib