From d8341f678a91ef7e2b0dbaa6b58b969250b69ff5 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 2 Feb 2006 18:14:42 +0000 Subject: [PATCH] Test for non-cd users --- commands/scripts/setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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`" -- 2.44.0