--- elwix/config/etc/rootfs/rc 2012/10/09 12:21:25 1.1.1.1.6.7 +++ elwix/config/etc/rootfs/rc 2012/10/10 08:58:49 1.1.1.1.6.9 @@ -2,7 +2,7 @@ # # Boot startup script for ELWIX RootFS ... # -# $Id: rc,v 1.1.1.1.6.7 2012/10/09 12:21:25 misho Exp $ +# $Id: rc,v 1.1.1.1.6.9 2012/10/10 08:58:49 misho Exp $ stty status '^T' @@ -51,10 +51,19 @@ boot_elwix() mdmfs -s $FRMSIZE -S -m0 -oasync $FRMDEV /usr cd /usr pax -r -z -pe -f $FRMPATH/$FRMFILE + cd - + mount -ur /usr sleep 2 } +mount_usr() +{ + echo " RootFS: Mounting ELWIX system image" + + mount -t nullfs -r $FRMPATH/usr /usr +} + # ## main() # @@ -74,7 +83,11 @@ fi if [ -r /elwix/elwix-firmware.sys ]; then boot_elwix else - echo " RootFS: Skip loading ELWIX system firmware ..." + if [ -d $FRMPATH/usr ]; then + mount_usr + else + echo " RootFS: Skip loading ELWIX system firmware ..." + fi fi exec /etc/rc.init