Check for some contents in rootfs

This commit is contained in:
Bob Mottram 2015-01-31 10:51:38 +00:00
parent 49ee34974b
commit 7ed801d32a
1 changed files with 6 additions and 4 deletions

View File

@ -161,10 +161,6 @@ if [ -f /usr/bin/sudo ]; then
SUDO='sudo' SUDO='sudo'
fi fi
$SUDO ./setup_sdcard.sh --mmc $MICROSD_DRIVE --dtb beaglebone $SUDO ./setup_sdcard.sh --mmc $MICROSD_DRIVE --dtb beaglebone
if [ ! "$?" = "0" ]; then
echo 'System did not install to the microSD'
exit 4378
fi
echo '' echo ''
echo '' echo ''
@ -192,6 +188,12 @@ if [ ! -d $MICROSD_MOUNT_POINT/$ROOTFS ]; then
exit 65688 exit 65688
fi fi
if [ ! -d $MICROSD_MOUNT_POINT/$ROOTFS/home ]; then
echo "The rootfs partition was not written correctly."
ls $MICROSD_MOUNT_POINT/$ROOTFS
exit 65688
fi
$SUDO cp $MICROSD_MOUNT_POINT/$BOOT/bbb-uEnv.txt $MICROSD_MOUNT_POINT/$BOOT/uEnv.txt $SUDO cp $MICROSD_MOUNT_POINT/$BOOT/bbb-uEnv.txt $MICROSD_MOUNT_POINT/$BOOT/uEnv.txt
$SUDO sed -i 's/iface eth0 inet dhcp/iface eth0 inet static/g' $MICROSD_MOUNT_POINT/$ROOTFS/etc/network/interfaces $SUDO sed -i 's/iface eth0 inet dhcp/iface eth0 inet static/g' $MICROSD_MOUNT_POINT/$ROOTFS/etc/network/interfaces