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. Cheers, b.
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ 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