common: redirect dd stderr to stdout.
authorAri Sundholm <ari@tuxera.com>
Mon, 29 Sep 2014 02:59:45 +0000 (12:59 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 29 Sep 2014 02:59:45 +0000 (12:59 +1000)
So that the checks work correctly on BusyBox systems.

Signed-off-by: Ari Sundholm <ari@tuxera.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc

index d49137c2618d48d6b2ac23d401a82ea44f9d3a88..34d7c19b95f81029388100fc3edb74eda7b10472 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -44,7 +44,7 @@ dd()
 {
    if [ "$HOSTOS" == "Linux" ]
    then        
 {
    if [ "$HOSTOS" == "Linux" ]
    then        
-       command dd --help | grep noxfer > /dev/null 2>&1
+       command dd --help 2>&1 | grep noxfer >/dev/null
        
        if [ "$?" -eq 0 ]
            then
        
        if [ "$?" -eq 0 ]
            then