Commit f4820471 authored by Stratum 0 Powerberry's avatar Stratum 0 Powerberry
Browse files

inital commit stratumkey

parents
#!/bin/sh
echo 1 > /sys/class/gpio/gpio7/value
sleep 0.1
echo 0 > /sys/class/gpio/gpio7/value
#!/bin/sh
if echo $SSH_CLIENT | grep -q "192\.168\.17"
then
echo "Bye bye"
else
echo "WLAN required"
exit
fi
export LANG=en_US.UTF-8
HOST=$(who am i|awk '{ print $5}')
MSG=$(python -c "import urllib; print urllib.quote('''Spacetuer zu ${HOST}''')")
curl --silent "http://auge-faust.de/trixie/say/${MSG}" > /dev/null
echo 1 > /sys/class/gpio/gpio7/value
sleep 0.1
echo 0 > /sys/class/gpio/gpio7/value
echo 7 > /sys/class/gpio/export
echo 11 > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio7/direction
echo "out" > /sys/class/gpio/gpio11/direction
chgrp stratumkey /sys/class/gpio/gpio7/value
chgrp stratumkey /sys/class/gpio/gpio11/value
chmod g+w /sys/class/gpio/gpio7/value
chmod g+w /sys/class/gpio/gpio11/value
#!/bin/bash
echo 1 > /sys/class/gpio/gpio11/value
sleep 1
echo 0 > /sys/class/gpio/gpio11/value
#!/bin/bash
if echo $SSH_CLIENT | grep -q "192\.168\.17"
then
echo "You shall pass"
else
echo "WLAN required"
exit
fi
export LANG=en_US.UTF-8
HOST=$(who am i|awk '{ print $5}')
MSG=$(python -c "import urllib; print urllib.quote('''Spacetuer auf ${HOST}''')")
curl --silent "http://auge-faust.de/trixie/say/${MSG}" > /dev/null
echo 1 > /sys/class/gpio/gpio11/value
sleep 1
echo 0 > /sys/class/gpio/gpio11/value
groupadd stratumkey
useradd -s /home/pi/stratumkey/open_stratumkey.sh -g stratumkey auf
useradd -s /home/pi/stratumkey/close_stratumkey.sh -g stratumkey zu
useradd -s /home/pi/stratumkey/test_stratumkey.sh -g stratumkey test
#!/bin/sh
export LANG=en_US.UTF-8
echo "OK. - StratumKey"
who am i
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment