Am 17.01.2013 09:55, schrieb dyoung@xxxxxxxxxx: > For cmdline argument with numeric value, add a new function getargnum > It will get proper value with default value as $1, min value as $2, > max value as $3, and param name as $4. valid result will be echo to stdout. > for nul or value not valid it will just echo the default value. > Note: The values should be >=0 > > [v1->v2]: add arg <minval> > [v2->v3]: do not use bash string match =~ > > Signed-off-by: Dave Young <dyoung@xxxxxxxxxx> merged -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html