Brian J. Murrell wrote:
> On my OpenWRT shorewall6-lite (4.2.8) machine, observe the following:
> 
> # /bin/sh -c 'printf "%2d%02d%02d\n" 2 6 30 9'
> 20630
> 9sh: : invalid number
> 00sh: : invalid number
> 00
> # /bin/sh -c 'printf "%2d%02d%02d%02d\n" 2 6 30 9'
> 2063009
> 
> So it looks like printf doesn't like having more digits than format in
> the busybox bourne shell.
> 
> I could hack up either of the two solutions available, one being the
> above or the other being stripping the kernel version down to 3
> positions.  I'm just not sure which you want long-term.

What does 'uname -r' return on this box?

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to