Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: piixide write speed very slow - solved



On Thu, Dec 10, 2009 at 05:15:11PM -0500, Greg A. Woods wrote:
> 
> Also, if you're going to support alternate upper/lower case spellings
> for flag variables then supporting them all at once is better and
> clearer than choosing just two (or even all three sane ones):
> 
>       case "$drivecache_flags" in
> -     OFF|off)
> +     [oO][fF][fF])
> 
> 


Even better to use the standard checkyesno() routine from rc.subr so people
can use all regular values for on/off switches (off/disabled/false/0).


        Geert


-- 
Geert Hendrickx  -=-  ghen%telenet.be@localhost  -=-  PGP: 0xC4BB9E9F
This e-mail was composed using 100% recycled spam messages!

Attachment: pgpR2Vz5w28S7.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index