etc: rename script more generic.
Signed-off-by: Steve Jeong <how2soft@gmail.com> Change-Id: Ia3cdc818a9156a4aaad346e63efdea6e32ab864b
This commit is contained in:
17
etc/odroid-allowuser.sh
Normal file
17
etc/odroid-allowuser.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# /etc/odroid-allowuser.sh
|
||||
# written by Steve Jeong <how2soft@gmail.com>
|
||||
#
|
||||
# allow access sys node (with odroid-wiringpi gpiomem).
|
||||
# udev rules: 99-odroid-wiringpi-*.rules
|
||||
|
||||
cutoff=0
|
||||
|
||||
while [ ! -d "$1" ]; do
|
||||
cutoff=$(expr ${cutoff} + 1)
|
||||
[ ${cutoff} -gt 5 ] && break
|
||||
sleep .1
|
||||
done
|
||||
|
||||
chmod -R ugo+rw $1
|
||||
Reference in New Issue
Block a user