2014-06-06 13:48:56 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "Initializing Door Systems..."
|
2014-12-09 21:39:21 +01:00
|
|
|
echo "17" > /sys/class/gpio/unexport
|
|
|
|
echo "17" > /sys/class/gpio/export
|
2014-06-06 13:48:56 +02:00
|
|
|
sleep 0.5
|
|
|
|
echo "Securing Communication to Door Systems..."
|
2014-12-09 21:39:21 +01:00
|
|
|
echo "out" > /sys/class/gpio/gpio17/direction
|
2014-06-06 13:48:56 +02:00
|
|
|
sleep 0.5
|
|
|
|
echo "Open Communication Channel..."
|
2014-12-09 21:39:21 +01:00
|
|
|
sleep 0.5
|
2014-06-06 13:48:56 +02:00
|
|
|
echo "Opening Door..."
|
2014-12-09 21:39:21 +01:00
|
|
|
echo "1" > /sys/class/gpio/gpio17/value
|
2014-06-06 13:48:56 +02:00
|
|
|
sleep 1
|
|
|
|
echo "Welcome"
|
2014-12-09 21:39:21 +01:00
|
|
|
echo "0" > /sys/class/gpio/gpio17/value
|
|
|
|
sleep 3
|
|
|
|
echo "1" > /sys/class/gpio/gpio17/value
|
|
|
|
sleep 1
|
|
|
|
echo "0" > /sys/class/gpio/gpio17/value
|