Create udev rules with a simple command line.
pip3 install git+https://github.com/JosefGst/udev_tools
git clone https://github.com/JosefGst/udev_tools.git
cd udev_tools
pip3 install .
udev
The program will stop and wait for you to plugin the usb device. After the device got plugged in it automatically recognize it and displays the udev rules.
By default the device will be called "ttyDevice". To change it use:
udev new_gadget
To include the KERNELS information sot he rule applies only on the specified prot run:
udev -k
To write to a file use the --output flag followed with the path to the file. The rule will be appended to it.
udev -o my.rules
udev my_gadget -k -o my.rules
You should have a rules.rules file which can be copied to /etc/udev/rules.d/ directory
sudo udevadm control --reload-rules && sudo service udev restart && sudo udevadm trigger
python3 -m nose2 -v
- save output directly in /etc/udev/rules.d/ directory (is sudo permitted)
- pip3 install udev_tools git+https://github.com/JosefGst/udev_tools not working
- (optional) check if directory exists, otherwise create