[BusyBox] [PATCH] macadddr command

Sam Robb uclibc at oneparticularharbor.net
Thu Jul 21 22:04:50 UTC 2005


On Thu, 2005-07-21 at 17:18 -0400, Paul Fox wrote:
>  > the warewulf project uses busybox for its ramdisk image (which works
>  > great), with which they have a standalone mac-addr binary that simply
>  > emits the mac address of an interface specified on the command line. i'm
> 
> i understand the usefulness of such a command, but is an applet
> really necessary?  how about:
> 
> $ cat >macaddr <<\EOF
> ifconfig $1 | sed -ne 's/.*HWaddr \(.*\)$/\1/p' -e q
> EOF

Having monitored the mailing list for a couple of months, I've
seen a couple of exchanges like this - a suggestion for the
inclusion of a utility, and a response indicating an alternate
way to accomplish the same end via existing utilities and a
script.

Does anyone think that it would be useful to collect such things
into a separate package that can be included in an RFS if needed/
desired?  Or does such a package already exist?

-Samrobb




More information about the busybox mailing list