summarylogtreecommitdiffstats
path: root/lib_gpio-present.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib_gpio-present.sh')
-rw-r--r--lib_gpio-present.sh12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib_gpio-present.sh b/lib_gpio-present.sh
deleted file mode 100644
index af6f9fc9c980..000000000000
--- a/lib_gpio-present.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-gpio_present() {
- for CHIP in /sys/class/gpio/gpiochip*; do
- if [ -d "$CHIP" ]; then
- BASE=`cat "$CHIP/base" || true`
- NGPIO=`cat "$CHIP/ngpio" || true`
- if [ -n "$BASE" ] && [ -n "$NGPIO" ] && [ "$1" -ge "$BASE" ] && [ "$1" -lt "$(($BASE+$NGPIO))" ]; then
- return 0
- fi
- fi
- done
- return 1
-}