On 12/21/20 7:19 AM, Anatoly Mihailov wrote: > Hello. I found that description of dumpleases toy referring to udhcpd from > busybox, but toybox have dhcpd instead of udhcpd. > I made patch to fix this: > > --- dumpleases.c 2020-12-21 18:05:36.623880028 +0500 > +++ dumpleases.c 2020-12-21 17:44:45.094338953 +0500 > @@ -1,4 +1,4 @@ > -/* dumpleases.c - Dump the leases granted by dhcpd. > +/* dumpleases.c - Dump the leases granted by udhcpd. > * > * Copyright 2013 Sandeep Sharma <[email protected] > <mailto:[email protected]>> > * Copyright 2013 Kyungwan Han <[email protected] > <mailto:[email protected]>> > @@ -12,7 +12,7 @@ > help > usage: dumpleases [-r|-a] [-f LEASEFILE] > > - Display DHCP leases granted by dhcpd > + Display DHCP leases granted by udhcpd > -f FILE, Lease file > -r Show remaining time > -a Show expiration time
Sigh: http://lists.landley.net/pipermail/toybox-landley.net/2015-April/004026.html I yelled at the people who were submitting that stuff into pending, but have not had the energy to go through and clean up those commands yet. For one thing, "dumpleases" is bad design, it should be "dhcpd --dump" or similar. Also, writing a binary structure into the file directly is just asking for version skew, why isn't the file human readable already? (Then you could just "cat" it.) My brain is full of shell stuff right now. In theory, then I need to do route, then I need to go through the list of pending commands android is building, then I need to get linux from scratch building, _then_ I can redo this. In practice, that's far enough ahead I can't predict... Rob _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
