Debian Codegraph @

docs/assets/postinst.sh

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