SVN: rc-scripts/trunk/rc.d/init.d/cryptsetup

Elan Ruusamäe glen at pld-linux.org
Fri Nov 14 02:00:42 CET 2008


On Thursday 13 November 2008 22:24, Jakub Bogusz wrote:
> > +                             echo "Key file for $dst not found,
> > skipping" ret=1
> >                               continue
> >                       fi
>
> [...]
>
> Don't remove i18n, use nls function instead.

different question, how do you format those services who say:

Starting foo .... [buzy]

now if there's some output to say (errors), it will be printed right after 
[buzy] bracket, which is plain unreadable.

msg_starting "Starting disk encryption"
if ... echo "Error happened!"

and if no failure is met, then it would look ok:
Starting foo .... [ok]

sometimes (like asking passphrase) a newline would be needed too:
Starting foo ....[buzy]Enter passphrase 
for /dev/sda:

-- 
glen


More information about the pld-devel-en mailing list