blob: 1fe695a7c22568892db2afe7603e57d63697b62d [file] [log] [blame]
Steve Jeongdf2e3022023-04-20 10:09:48 +09001#!/bin/sh
2
3# /etc/odroid-allowuser.sh
4# written by Steve Jeong <how2soft@gmail.com>
5#
6# allow access sys node (with odroid-wiringpi gpiomem).
7# udev rules: 99-odroid-wiringpi-*.rules
8
9cutoff=0
10
11while [ ! -d "$1" ]; do
12 cutoff=$(expr ${cutoff} + 1)
13 [ ${cutoff} -gt 5 ] && break
14 sleep .1
15done
16
17chmod -R ugo+rw $1