Skip to content

Commit 5995c86

Browse files
authored
Update setup-permissions.sh
1 parent 9c26ebb commit 5995c86

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

setup-permissions.sh

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
#!/bin/bash
22

3-
#Set path to copy appimage and autolaunch location
4-
path="/home/pi/Desktop/Carplay.AppImage"
5-
63
#create udev rule thats specific to carlinkit device
74
echo "Creating udev rules"
85

96
FILE=/etc/udev/rules.d/52-nodecarplay.rules
10-
echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"1314\", ATTR{idProduct}==\"1520\", MODE=\"0660\", GROUP=\"plugdev\"" | sudo tee $FILE
7+
echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"1314\", ATTR{idProduct}==\"152*\", MODE=\"0660\", GROUP=\"plugdev\"" | sudo tee $FILE
118

129
if [[ $? -eq 0 ]]; then
1310
echo -e Permissions created'\n'
1411
else
1512
echo -e Unable to create permissions'\n'
1613
fi
1714

18-
echo "All Done"
19-

0 commit comments

Comments
 (0)