zmatt icon

gpio-symlinks.rules

zmatt | PRO | 01/16/21 05:09:38 AM UTC | 0 ⭐ | 698 👁️ | Never ⏰ | []
text |

240 B

|

None

|

0 👍

/

0 👎

SUBSYSTEM=="subsystem", KERNEL=="gpio", ACTION=="add", \
        RUN+="/bin/mkdir -p /dev/gpio"
 SUBSYSTEM=="gpio", ACTION=="add", TEST=="value", ATTR{label}!="sysfs", \
        RUN+="/bin/ln -sT '/sys/class/gpio/%k' /dev/gpio/%s{label}"
 

Comments