[BusyBox] [patch] new applet mountpoint

Rainer Weikusat rainer.weikusat at sncag.com
Fri Aug 19 09:40:57 UTC 2005


Bernhard Fischer <rep.nop at aon.at> writes:
> Attached patch adds a mountpoint(1) applet.
>
> $ size miscutils/mountpoint.o
>    text	   data	    bss	    dec	    hex	filename
>     614	      0	      0	    614	    266	miscutils/mountpoint.o
>
> It's relatively big but feature complete.
> Ok?

Given that busybox may eventually include an operating system kernel
and a C library of its own :->, but will certainly never
(substantially) work with a different kernel than Linux, why not

mountpoint()
{
        cut -d' ' -f2 /proc/mounts | grep -q "$1"
}

plus a set of similar small shell functions that print the other
information, insofar requested?

        
        



More information about the busybox mailing list