DJ Lucas wrote: > The other (and easier) solution is to echo "mounting...", capture > output of mount and grep for the check message, if then spit the > message to screen and add another line (echo) and then echo_ok.
Or possibly "case" instead of "grep", but yeah, that sounds like a decent idea. Have to make sure that the check message is happening on the last line of fsck's output, though (because with multiple FSes, it may not be). I'd also like a check (for just this line) that sees if the length of the text is too long before blindly echoing, but (as you said) wc is possibly unavailable, and broken in multibyte locales. So that probably isn't going to happen. It'd be nice for the *fb users, though, to take up one line fewer. Oh well.
signature.asc
Description: OpenPGP digital signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page