mirror of
https://github.com/xtacocorex/CHIP_IO
synced 2025-07-20 04:43:21 +00:00
Reworked a lot of error handling.
This commit is contained in:
7
unexport_all.sh
Executable file
7
unexport_all.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
for F in /sys/class/gpio/gpio[0-9]*; do :
|
||||
GPIO=`echo $F | sed 's/^[^0-9]*//'`
|
||||
echo $F $GPIO
|
||||
echo $GPIO >/sys/class/gpio/unexport
|
||||
done
|
Reference in New Issue
Block a user