]> Zhao Yanbai Git Server - minix.git/commitdiff
Test for non-cd users
authorBen Gras <ben@minix3.org>
Thu, 2 Feb 2006 18:14:42 +0000 (18:14 +0000)
committerBen Gras <ben@minix3.org>
Thu, 2 Feb 2006 18:14:42 +0000 (18:14 +0000)
commands/scripts/setup.sh

index 8203d4ab35480e36be54fc35bf942c5c806f1dcf..68bff081433f788c079630e275858b97dc38db60 100755 (executable)
@@ -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`"