Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### change the last rule of /etc/udev/rules.d/81-pwm-noroot.rules to:
- # create symlinks in /dev/pwm
- SUBSYSTEM=="pwm", ENV{DEVTYPE}=="pwm_channel", ACTION=="add", ENV{PWM_NAME}!="", \
- RUN+="/bin/mkdir -p /dev/pwm", \
- RUN+="/bin/ln -sT '/sys/class/pwm/%k' /dev/pwm/%E{PWM_NAME}", \
- TAG+="systemd", ENV{SYSTEMD_ALIAS}+="/dev/pwm/%E{PWM_NAME}"
- #### BEWARE: pay attention to the presence or absence of backslashes at the end of each line!
- #### (escaping newlines is required to be able to split an udev rule across multiple lines,
- #### similar to macros in C)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement