Advertisement
zmatt

gpio-symlinks.rules

Jan 16th, 2021
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. SUBSYSTEM=="subsystem", KERNEL=="gpio", ACTION=="add", \
  2. RUN+="/bin/mkdir -p /dev/gpio"
  3.  
  4. SUBSYSTEM=="gpio", ACTION=="add", TEST=="value", ATTR{label}!="sysfs", \
  5. RUN+="/bin/ln -sT '/sys/class/gpio/%k' /dev/gpio/%s{label}"
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement