#!/bin/zsh --multios #(c) Bernhard Tittelbach LUFA_CDC_DEVS=($(${0:h}/detect_lufa_cdc)) if [[ ${#LUFA_CDC_DEVS} -gt 0 ]]; then echo "resetting device(s) $LUFA_CDC_DEVS ..." echo $1 > ${LUFA_CDC_DEVS} echo "waiting for device to enumerate .." sleep 3 else echo "LUFA ttyACMs not found ... device is probably already in bootloader mode - doing nothing" fi exit 0