summarylogtreecommitdiffstats
path: root/sparki_usb
blob: 785619fcc0d9c8d5ce3f3d81b4afe47f9e73e8ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
if ! $(groups $USER | grep &>/dev/null '\buucp\b'); then
  echo "assign user '$USER' to group: gpasswd -a $USER uucp"
  exit
fi


if ! $(groups $USER | grep &>/dev/null '\block\b'); then
  echo "assign user '$USER' to group: gpasswd -a $USER lock"
  exit
fi


if ! $(groups $USER | grep &>/dev/null '\btty\b'); then
  echo "assign user '$USER' to group: gpasswd -a $USER tty"
  exit
fi

stty -F /dev/ttyACM0 cs8 9600 ignbrk -brkint -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts