Test for non-cd users
This commit is contained in:
parent
a4e64f44bf
commit
d8341f678a
1 changed files with 6 additions and 0 deletions
|
@ -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`"
|
||||
|
|
Loading…
Reference in a new issue