From: Ben Gras Date: Thu, 2 Feb 2006 18:14:42 +0000 (+0000) Subject: Test for non-cd users X-Git-Tag: v3.1.2a~389 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/static/style.css?a=commitdiff_plain;h=d8341f678a91ef7e2b0dbaa6b58b969250b69ff5;p=minix.git Test for non-cd users --- diff --git a/commands/scripts/setup.sh b/commands/scripts/setup.sh index 8203d4ab3..68bff0814 100755 --- a/commands/scripts/setup.sh +++ b/commands/scripts/setup.sh @@ -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`"