Files
wiringPi/etc/odroid-wpi-pwm.sh
Steve Jeong 16e6a29c28 change maintainer's e-mail and name.
change mail address gmail of "jkhpro1003" to "how2soft".

"jkh" means that is the initials of my korean name spelling.
I changed it because only Koreans don't use it.

Signed-off-by: Steve Jeong <how2soft@gmail.com>
Change-Id: Ibf7ceef9b1085f706bb0ce82fcddfa2d13a16b9d
2023-01-03 12:04:06 +09:00

19 lines
364 B
Bash

#!/bin/sh
# /etc/odroid-wpi-pwm.sh
# written by Steve Jeong <how2soft@gmail.com>
#
# allow access pwm sys node (with odroid-wiringpi gpiomem).
# udev rules: 99-odroid-wiringpi-pwm.rules
# param: "/sys/class/pwm/pwmchip*" default.
cutoff=0
while [ ! -d "$1" ]; do
cutoff=$(expr ${cutoff} + 1)
[ ${cutoff} -gt 5 ] && break
sleep .1
done
chmod -R ugo+rw $1