Take 2...

This commit is contained in:
Chris Esposito 2019-06-23 14:22:42 +10:00
parent 54aabcd17b
commit d1fc926e7f
1 changed files with 12 additions and 12 deletions

View File

@ -42,20 +42,20 @@ if [ -n "$cxxpath" ] || [ -n "$gccpath" ]; then
fi fi
if [ ! -f /etc/udev/rules.d/69-labrador.rules ]; then if [ ! -f /etc/udev/rules.d/69-labrador.rules ]; then
cat > /tmp/roothelper <<\EOoF cat > /tmp/roothelper <<\EOoF
#!/bin/bash #!/bin/bash
cat > /etc/udev/rules.d/69-labrador.rules <<\EOF cat > /etc/udev/rules.d/69-labrador.rules <<\EOF
ENV{ID_VENDOR_ID}=="03eb", ENV{ID_MODEL_ID}=="ba94", SYMLINK="EspoTek_Labrador", MODE="0666" ENV{ID_VENDOR_ID}=="03eb", ENV{ID_MODEL_ID}=="ba94", SYMLINK="EspoTek_Labrador", MODE="0666"
ENV{ID_VENDOR_ID}=="03eb", ENV{ID_MODEL_ID}=="2fe4", SYMLINK="ATXMEGA32A4U DFU Bootloader", MODE="0666" ENV{ID_VENDOR_ID}=="03eb", ENV{ID_MODEL_ID}=="2fe4", SYMLINK="ATXMEGA32A4U DFU Bootloader", MODE="0666"
EOF EOF
udevadm trigger udevadm trigger
EOoF EOoF
chmod a+x /tmp/roothelper chmod a+x /tmp/roothelper
sudo true && sudo /tmp/roothelper sudo true && sudo /tmp/roothelper
sudo true || pkexec --disable-internal-agent /tmp/roothelper || true sudo true || pkexec --disable-internal-agent /tmp/roothelper || true
rm /tmp/roothelper rm /tmp/roothelper
fi fi
exec "$HERE/usr/bin/Labrador" "$@" exec "$HERE/usr/bin/Labrador" "$@"