mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-07 16:14:01 +02:00
12 lines
392 B
Bash
Executable file
12 lines
392 B
Bash
Executable file
#!/bin/bash
|
|
# This is example script to force unlock the lock in case the reader HW is
|
|
# dead, kernel driver misbehaves or reader cable is damaged.
|
|
|
|
export PIN=25
|
|
|
|
if [ '!' -d /sys/class/gpio/gpio$PIN ]; then
|
|
echo $PIN > /sys/class/gpio/export
|
|
echo out > /sys/class/gpio/gpio$PIN/direction
|
|
fi
|
|
|
|
echo 1 > /sys/class/gpio/gpio$PIN/value; sleep 5; echo 0 > /sys/class/gpio/gpio$PIN/value
|