Update utils.py

This commit is contained in:
Oskar Weigl
2018-09-11 18:49:10 -07:00
committed by GitHub
parent 8bc59ab9eb
commit c5863dc7cd
+1 -1
View File
@@ -151,7 +151,7 @@ def setup_udev_rules(logger):
logger.error("This command only makes sense on Linux")
if os.getuid() != 0:
logger.warn("you should run this as root, otherwise it will probably not work")
with open('/etc/udev/rules.d/99-odrive.rules', 'w') as file:
with open('/etc/udev/rules.d/91-odrive.rules', 'w') as file:
file.write('SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0d3[0-9]", MODE="0666"\n')
subprocess.check_call(["udevadm", "control", "--reload-rules"])
subprocess.check_call(["udevadm", "trigger"])