--- elwix/config/etc/rootfs/rc 2012/02/09 01:27:57 1.1.1.1.6.4 +++ elwix/config/etc/rootfs/rc 2012/02/14 13:54:08 1.1.1.1.6.5 @@ -2,7 +2,7 @@ # # Boot startup script for ELWIX RootFS ... # -# $Id: rc,v 1.1.1.1.6.4 2012/02/09 01:27:57 misho Exp $ +# $Id: rc,v 1.1.1.1.6.5 2012/02/14 13:54:08 misho Exp $ stty status '^T' @@ -32,9 +32,10 @@ failed_sysvol() boot_elwix() { - echo " RootFS: Load ELWIX system firmware" + echo " RootFS: Loading ELWIX system firmware" mdconfig -a -t vnode -u 1 -f /elwix/elwix-firmware.sys && mount -r /dev/md1.uzip /usr if test $? -ne 0; then + echo " RootFS: Failed firmware image! Try to load ELWIX system firmware from alternative location" mdconfig -d -u 1 >/dev/null 2>&1 mdconfig -a -t vnode -u 1 -f /elwix/altroot/elwix-firmware.sys && mount -r /dev/md1.uzip /usr if test $? -ne 0; then @@ -61,6 +62,10 @@ if test -c $FIT2CF -a -d $CFDIR; then failed_sysvol mount "flash volume" fi -boot_elwix +if [ -r /elwix/elwix-firmware.sys ]; then + boot_elwix +else + echo " RootFS: Skip loading ELWIX system firmware ..." +fi exec /etc/rc.init