Skip to content

Commit

Permalink
fix tty detect
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin committed Nov 28, 2016
1 parent bc1dcf8 commit 743d834
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion files-reboot/sbin/yotareboot
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/sh
ttysearch() {
for d in $(ls /dev/ttyUSB* /dev/cdc-wdm* /dev/ttyACM* /dev/ttyHS* | sort -r); do
ttydevice=$d gcom -s /usr/share/yota/gcom/probeport.gcom && break
DEVICE=$d gcom -s /usr/share/yota/gcom/probeport.gcom
if [ $? = 0 ]; then
ttydevice=$d
break
fi
done
}

Expand Down

0 comments on commit 743d834

Please sign in to comment.