Steve Jeong | df2e302 | 2023-04-20 10:09:48 +0900 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | # /etc/odroid-allowuser.sh | ||||
Steve Jeong | 63e03fe | 2023-07-11 15:35:06 +0900 | [diff] [blame] | 4 | # written by Steve Jeong <steve@how2flow.net> |
Steve Jeong | df2e302 | 2023-04-20 10:09:48 +0900 | [diff] [blame] | 5 | # |
6 | # allow access sys node (with odroid-wiringpi gpiomem). | ||||
7 | # udev rules: 99-odroid-wiringpi-*.rules | ||||
8 | |||||
9 | cutoff=0 | ||||
10 | |||||
11 | while [ ! -d "$1" ]; do | ||||
12 | cutoff=$(expr ${cutoff} + 1) | ||||
13 | [ ${cutoff} -gt 5 ] && break | ||||
14 | sleep .1 | ||||
15 | done | ||||
16 | |||||
17 | chmod -R ugo+rw $1 |