fix getsupporteddevice script

This commit is contained in:
Michael Zanetti 2014-01-02 01:12:21 +01:00
parent f9372d7587
commit 10f008bd29

View File

@ -1,3 +1,7 @@
#!/bin/bash
(echo '{"id":1, "method":"Devices.GetSupportedDevices"}'; sleep 1) | nc 10.10.10.114 1234
if [ -z $1 ]; then
echo "usage $0 host"
else
(echo '{"id":1, "method":"Devices.GetSupportedDevices"}'; sleep 1) | nc $1 1234
fi