Fixed libusb01.c (renamed err constants)
[usb-relay-hid.git] / commandline / relay1-pulse.sh
CommitLineData
6629800a 1#!/bin/sh
2# Pulse USB relay channel for (sec) seconds
0725bb21 3# If access to the USB device requires root, run with sudo
4sec=${1:1}
6629800a 5chan=1
6SUDO=sudo
0725bb21 7dir="./"
8
9$SUDO ${dir}hidusbrelay-cmd ON $chan
6629800a 10sleep $sec
0725bb21 11$SUDO ${dir}hidusbrelay-cmd OFF $chan