[BusyBox] [PATCH] fix lsmod for kernel-2.6
Rob Landley
rob at landley.net
Tue May 3 23:49:38 UTC 2005
On Tuesday 03 May 2005 08:11 pm, Mike Frysinger wrote:
> On Tuesday 03 May 2005 05:31 pm, Rob Landley wrote:
> > On Tuesday 03 May 2005 10:01 am, Takeharu KATO wrote:
> > > I found that lsmod in busybox does not support linux-2.6.
> > > I fix this issue(it is caused by changes of /proc/modules format).
> > > If you use lsmod in busybox with kernel-2.6, please use this patch.
> >
> > Applied.
>
> why ? all lsmod does is basically do `cat /proc/modules` ... the only
> thing this patch does is make the output 'pretty' which really doesnt
> matter when you want to keep it small ...
> -mike
In that case, can't lsmod just _be_ a script with:
#/bin/sh
cat /proc/modules
That's 27 bytes or so, smaller than any lsmod built into busybox is going to
be...
Rob
More information about the busybox
mailing list