Linux makefile - make the lib by default, copy tests
[usb-relay-hid.git] / Test / relay1-pulse.sh
index 8a42b52d14b55c3bbe637810b5e93a842f3f3f6a..54bb0d543a9c389f79c397051b41e889db5c1aab 100644 (file)
@@ -1,11 +1,11 @@
 #!/bin/sh
 # Pulse USB relay channel for  (sec) seconds
 # If access to the USB device requires root, run with sudo
-sec=${1:1}
+sec=${1:-1}
 chan=1
 SUDO=sudo
 dir="./"
 
-$SUDO ${dir}hidusbrelay-cmd ON $chan
+$SUDO ${dir}hidusb-relay-cmd ON $chan
 sleep $sec
-$SUDO ${dir}hidusbrelay-cmd OFF $chan
+$SUDO ${dir}hidusb-relay-cmd OFF $chan