The -q flag is not supported by busybox, even though it is mentioned
in the usage.

$ busybox hdparm 2>&1 | grep -- '-q\W'
        -q      Change next setting quietly

$ busybox hdparm -q -c1 /dev/sdb
hdparm: invalid option -- q

/dev/sdb:
 setting 32-bit IO_support flag to 1

I tried to write a patch, but it doesn't make much sense. Theres over
200 places where printf() is used throughout miscutils/hdparm.c.

The easier way is to remove the line from the usage, and me
redirecting output to /dev/null...

Patch attached.

Christoph
--- include/usage.h.orig	2008-03-06 16:46:40.562271781 +0100
+++ include/usage.h	2008-03-06 16:46:49.820715872 +0100
@@ -1396,7 +1396,6 @@
        "	-n	Get/set ignore-write-errors flag (0/1)\n" \
        "	-p	Set PIO mode on IDE interface chipset (0,1,2,3,4,...)\n" \
        "	-P	Set drive prefetch count\n" \
-       "	-q	Change next setting quietly\n" \
        "	-Q	Get/set DMA tagged-queuing depth (if supported)\n" \
        "	-r	Get/set readonly flag (DANGEROUS to set)\n" \
 	USE_FEATURE_HDPARM_HDIO_SCAN_HWIF( \
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to