Amlogic: do not write to mmcblk0 if it doesn't exist
This commit is contained in:
parent
4980922b5d
commit
1b45fb5791
1 changed files with 5 additions and 3 deletions
|
@ -116,9 +116,11 @@ fi
|
|||
if [ -f $SYSTEM_ROOT/usr/share/bootloader/${SUBDEVICE}_u-boot ]; then
|
||||
echo "Updating u-boot on: $BOOT_DISK..."
|
||||
dd if=$SYSTEM_ROOT/usr/share/bootloader/${SUBDEVICE}_u-boot of=$BOOT_DISK conv=fsync,notrunc bs=512 seek=1 &>/dev/null
|
||||
if [ $BOOT_DISK != /dev/mmcblk0 ]; then
|
||||
echo "Updating u-boot on: /dev/mmcblk0..."
|
||||
dd if=$SYSTEM_ROOT/usr/share/bootloader/${SUBDEVICE}_u-boot of=/dev/mmcblk0 conv=fsync,notrunc bs=512 seek=1 &>/dev/null
|
||||
if [ -e /dev/mmcblk0 ]; then
|
||||
if [ $BOOT_DISK != /dev/mmcblk0 ]; then
|
||||
echo "Updating u-boot on: /dev/mmcblk0..."
|
||||
dd if=$SYSTEM_ROOT/usr/share/bootloader/${SUBDEVICE}_u-boot of=/dev/mmcblk0 conv=fsync,notrunc bs=512 seek=1 &>/dev/null
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue