Skip to content

Commit

Permalink
81-pwm-noroot.rules: don't automatically export
Browse files Browse the repository at this point in the history
This is to try to avoid beagleboard/cloud9-examples#40
  • Loading branch information
jadonk authored Jun 18, 2020
1 parent a3b4eb1 commit 6377ab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/udev/rules.d/81-pwm-noroot.rules
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ SUBSYSTEM=="pwm", ACTION=="add", \
RUN+="/bin/chmod -R g=u '/sys%p'"

# automatically export pwm channels
SUBSYSTEM=="pwm", KERNEL=="pwmchip*", ACTION=="add", ATTR{export}="0"
SUBSYSTEM=="pwm", KERNEL=="pwmchip*", ACTION=="add", ATTR{npwm}!="1", ATTR{export}="1"
# SUBSYSTEM=="pwm", KERNEL=="pwmchip*", ACTION=="add", ATTR{export}="0"
# SUBSYSTEM=="pwm", KERNEL=="pwmchip*", ACTION=="add", ATTR{npwm}!="1", ATTR{export}="1"

# identify pwm peripherals on am335x
SUBSYSTEM=="pwm", KERNELS=="48300100.*", ENV{PWMCHIP_NAME}="ecap0"
Expand Down

0 comments on commit 6377ab0

Please sign in to comment.