Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hwdetector #7

Open
wants to merge 11 commits into
base: Kyryl.Krynychnyi
Choose a base branch
from
3 changes: 2 additions & 1 deletion hwdetect/hwdetect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ else
fi
echo

trap 'rm -f $usb0 $usb1 $flash0 $flash1 $i2c0 $i2c1 $sd0 $sd1 && echo -e "\n***********Detection ended***********" && exit' 2 3 15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is too long. Is it possible to fit it to 80 columns by adding some variable like ALL_TMP_FILES or/and MSG_TEXT?


echo "Active detector"
while true; do
ls /dev | grep ttyUSB* > $usb1
Expand Down Expand Up @@ -94,5 +96,4 @@ while true; do
fi

sleep 1
trap 'rm -f $usb0 $usb1 $flash0 $flash1 $i2c0 $i2c1 $sd0 $sd1 && echo -e "\n***********Detection ended***********" && exit' 2 3 15
done