aa
This commit is contained in:
parent
30448ea5ad
commit
182951023e
1 changed files with 7 additions and 5 deletions
12
doormagic.sh
12
doormagic.sh
|
@ -5,16 +5,16 @@ if [ "$USER" == "open" ]; then
|
|||
echo "Linking to DDR Mondbasis..."
|
||||
echo "Asking the party for permission to unlock door...."
|
||||
echo "Waiting for Faxmodem..."
|
||||
echo "chanelling the force"
|
||||
echo "Chanelling the force..."
|
||||
echo "Opening door..."
|
||||
PIN=17
|
||||
PIN=17 # pin 11
|
||||
elif [ "$USER" == "close" ]; then
|
||||
echo "Connecting to space systems..."
|
||||
echo "Linking to DDR Mondbasis..."
|
||||
echo "Rickrolling folks on mondbasis..."
|
||||
echo "Rickrolling folks on Mondbasis..."
|
||||
echo "Locating Messlatte..."
|
||||
echo "Closing door..."
|
||||
PIN=22
|
||||
PIN=22 # pin 15
|
||||
else
|
||||
echo "You shall not pass!"
|
||||
exit 1
|
||||
|
@ -28,4 +28,6 @@ sleep 1
|
|||
|
||||
sudo raspi-gpio set $PIN dh
|
||||
|
||||
echo "Action completed on GPIO pin $PIN"
|
||||
sudo raspi-gpio set $PIN dl
|
||||
|
||||
echo "Action completed on GPIO pin $PIN, set back to low."
|
||||
|
|
Loading…
Add table
Reference in a new issue