--- elwix/config/etc/rootfs/rc 2011/11/02 10:04:11 1.1.1.1.6.1 +++ elwix/config/etc/rootfs/rc 2012/02/09 01:27:57 1.1.1.1.6.4 @@ -2,7 +2,7 @@ # # Boot startup script for ELWIX RootFS ... # -# $Id: rc,v 1.1.1.1.6.1 2011/11/02 10:04:11 misho Exp $ +# $Id: rc,v 1.1.1.1.6.4 2012/02/09 01:27:57 misho Exp $ stty status '^T' @@ -33,12 +33,15 @@ failed_sysvol() boot_elwix() { echo " RootFS: Load ELWIX system firmware" - if ! test -r /elwix/elwix-firmware.sys; then - failed_sysvol "not found" + mdconfig -a -t vnode -u 1 -f /elwix/elwix-firmware.sys && mount -r /dev/md1.uzip /usr + if test $? -ne 0; then + 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 - - mdconfig -a -t vnode -u 1 -f /elwix/elwix-firmware.sys; - mount -r /dev/md1.uzip /usr; sleep 2 } @@ -60,4 +63,4 @@ fi boot_elwix -/etc/rc.init +exec /etc/rc.init