ioemu/sats/daemon/gpio

16 lines
333 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
# (1) Primary init.
#--------------------------------------------------------#
# (1) Get absolute folder #
ROOT=$(dirname `realpath $0`);
ROOT=`dirname $ROOT`;
# (2) Start daemon
#--------------------------------------------------------#
while sleep 1; do
echo "GPIO`cat /home/sats/satsd/conf/machine.state`";
done;