diff --git a/scripts/install-toolchain.sh b/scripts/install-toolchain.sh index bb93903..fe1a10a 100644 --- a/scripts/install-toolchain.sh +++ b/scripts/install-toolchain.sh @@ -1 +1,7 @@ -sudo apk add make cmake avrdude avr-libc gcc-avr \ No newline at end of file +sudo apk add make cmake avrdude avr-libc gcc-avr +if [[ -c /dev/ttyUSB0 ]]; then + sudo chown root:$(id -gn $(whoami)) /dev/ttyUSB0 +fi +if [[ -c /dev/ttyUSB1 ]]; then + sudo chown root:$(id -gn $(whoami)) /dev/ttyUSB1 +fi