examples: bash: print errors int stderr

+ whitespace

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
This commit is contained in:
Petr Vorel
2015-03-18 20:37:17 +01:00
committed by Dan Williams
parent 396dc2b3b4
commit 1e646f30f2
2 changed files with 3 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ show_active_ssids()
BSSID=`get_property $ACTIVE_AP $ACCESS_POINT_IFACE "HwAddress"`
echo "Device '$INTERFACE' is connected to '$SSID' (BSSID=$BSSID)"
else
echo "No active AP on device '$INTERFACE'"
echo "No active AP on device '$INTERFACE'" >&2
fi
fi
done

View File

@@ -61,7 +61,7 @@ disconnect_device ()
fi
done
echo "Device with interface '$1' not found."
echo "Device with interface '$1' not found." >&2
return 1
}
@@ -70,7 +70,7 @@ disconnect_device ()
if [ ! -n "$1" ]; then
echo "Usage: `basename $0` <interface name>"
exit 2
fi
fi
# disconnect device
disconnect_device $1