--- elwix/config/etc/rootfs/rc 2011/11/02 10:30:20 1.1.1.1.6.2 +++ 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.2 2011/11/02 10:30:20 misho Exp $ +# $Id: rc,v 1.1.1.1.6.5 2012/02/14 13:54:08 misho Exp $ stty status '^T' @@ -32,11 +32,14 @@ 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 + mdconfig -d -u 1 >/dev/null 2>&1 failed_sysvol "load system and default image" elwix-firmware.sys fi fi @@ -59,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 -/etc/rc.init +exec /etc/rc.init