Test for non-cd users

This commit is contained in:
Ben Gras 2006-02-02 18:14:42 +00:00
parent a4e64f44bf
commit d8341f678a

View file

@ -12,6 +12,12 @@ LOCALRC=/usr/etc/rc.local
MYLOCALRC=/mnt/etc/rc.local
ROOTMB=16
ROOTSECTS="`expr $ROOTMB '*' 1024 '*' 2`"
USRKBFILE=/.usrkb
if [ ! -f "$USRKBFILE" ]
then echo "Are you really running from CD?"
echo "No $USRKBFILE file."
exit 1
fi
USRKB="`cat /.usrkb`"
TOTALMB="`expr 3 + $USRKB / 1024 + $ROOTMB`"
ROOTFILES="`cat /.rootfiles`"