Debian Codegraph @

docs/assets/postinst.sh

raw symbols SCIP
1 #!/bin/sh
2 if [ "$1" = "configure" ]; then
3 echo "Setting permissions for examples folder"
4 chmod -R 777 /usr/share/kuttypy-gui/examples
5 fi
6
7 echo "Setting User Permissions for USB port for KuttyPy: AVR, FT232 and MCP2200"
8
9 echo "SUBSYSTEM==\"usb\",ATTRS{idVendor}==\"03eb\", ATTRS{idProduct}==\"21ff\", MODE=\"666\"" > /etc/udev/rules.d/99-kuttypy.rules
10 echo "SUBSYSTEM==\"tty\",ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6001\", MODE=\"666\"" >> /etc/udev/rules.d/99-kuttypy.rules
11 echo "SUBSYSTEM==\"tty\",ATTRS{idVendor}==\"04d8\", ATTRS{idProduct}==\"00df\", MODE=\"666\"" >> /etc/udev/rules.d/99-kuttypy.rules
12 echo "SUBSYSTEM==\"tty\",ATTRS{idVendor}==\"1a86\", ATTRS{idProduct}==\"7523\", MODE=\"666\"" >> /etc/udev/rules.d/99-kuttypy.rules
13
14 echo "ATTRS{idVendor}==\"03eb\", ATTRS{idProduct}==\"21ff\", ENV{ID_MM_DEVICE_IGNORE}=\"1\"" >> /etc/udev/rules.d/99-kuttypy.rules
15 echo "ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6001\", ENV{ID_MM_DEVICE_IGNORE}=\"1\"" >> /etc/udev/rules.d/99-kuttypy.rules
16 echo "ATTRS{idVendor}==\"04d8\", ATTRS{idProduct}==\"00df\", ENV{ID_MM_DEVICE_IGNORE}=\"1\"" >> /etc/udev/rules.d/99-kuttypy.rules
17 echo "ATTRS{idVendor}==\"1a86\", ATTRS{idProduct}==\"7523\", ENV{ID_MM_DEVICE_IGNORE}=\"1\"" >> /etc/udev/rules.d/99-kuttypy.rules
18
19 cat /etc/udev/rules.d/99-kuttypy.rules
20 service udev restart
21 /etc/init.d/udev restart
22 echo "Reconnect KuttyPy board on USB Port for permissions to take effect"