[PATCH] remove long options from hdparm + minor bugfixes

Tito farmatito at tiscali.it
Wed May 31 15:03:05 PDT 2006


Hi to all,
this patch:
1)	removes totally long option support from hdparm,
	but the --Istdin functionality is preserved because now the program
	reads from stdin if no device names are specified:

	cat /proc/ide/hda/identify |./busybox hdparm 

2) fixes the handling of -h.
3) fixes usage.h to match the current behaviour.
4) probably reduces size (i forgot to save the reference binary...).

The patch is tested and seems to work.
Please apply, if you like it.

Ciao,
Tito

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hdparm_no_getopt_long.patch
Type: text/x-diff
Size: 3757 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20060601/92ebcff6/hdparm_no_getopt_long-0001.bin


More information about the busybox mailing list