Advertisement
Guest User

Untitled

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