diff --git a/src/sdinstall-rpi.sh b/src/sdinstall-rpi.sh index bdf1247..b669948 100755 --- a/src/sdinstall-rpi.sh +++ b/src/sdinstall-rpi.sh @@ -52,7 +52,7 @@ echo ,,,- exit $? } -mkfs.vfat -F 32 -n "boot" $PARTITION1 +mkfs.vfat -F 32 -n "BOOT" $PARTITION1 mke2fs -t ext4 -j -L "openmamba" $PARTITION2 ### SD-Card: install software @@ -62,11 +62,11 @@ SWHOME=`mktemp -d` cd $SWHOME git clone git://github.com/raspberrypi/firmware.git --depth=1 -BOOTMP=/media/boot +BOOTMP=/media/BOOT ROOTMP=/media/openmamba -[ -e /media/boot -o -e /media/openmamba ] && { - echo "ERROR: /media/boot or /media/openmamba already exist." +[ -e $BOOTMP -o -e $ROOTMP ] && { + echo "ERROR: /media/BOOT or /media/openmamba already exist." exit 1 }