Talk:UBoot-Installer

/usr/sbin/mount_disk
echo -n "Mounting system (/dev/hda1) + data partition (/dev/hda3)" echo -n "of the internal HDD to /mnt/" mkdir /mnt/hda1 mkdir /mnt/hda3 mount -t vfat,ext3,ext2 /dev/hda1 /mnt/hda1 mount -t vfat,ext3,ext2 /dev/hda3 /mnt/hda3 exit 0
 * 1) ! /bin/sh

/etc/init.d/uboot_installer

 * 1) !/bin/sh
 * 2) mount the hdd-partitions
 * 1) mount the hdd-partitions

/usr/sbin/mount_disk


 * 1) check if hdd really was successfully mounted
 * 2) if yes proceed, if no stop

ERROR="0" mount | grep /mnt/hda1 > /dev/null || ERROR="1" mount | grep /mnt/hda3 > /dev/null || ERROR="1" if [ "$ERROR" == "1" ] ; then echo "FATAL: HDD not mounted!" exit 1 fi


 * 1) check which box this script is running on

ls /dev/fl* > /dev/null && FLAVOR="ls1" ls /dev/mtdblock* > /dev/null && FLAVOR="hg"


 * 1) check if a valid all-flash-file is available at the correct position on the hdd.
 * 2) it should check for /mnt/hda1/full_flash_image.bin...this file will be inside the
 * 3) bundled image.dat...at /

if ! ls /mnt/hda1/dev/full_flash_image.bin ; then echo "FATAL: The all-flash-file is not valid! " exit 1 fi

>>TO BE DONE >> TO BE DONE
 * 1) flash the all-flash-file to the complete flash-device
 * 1) maybe do some post-flashing checks before rebooting automatically and do not reboot if
 * 2) anything goes wrong so debugging + fixing it via telnet is possible
 * 1) automatically reboot

reboot