2018-01-28 17:28:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# (1) Primary init.
|
|
|
|
#--------------------------------------------------------#
|
|
|
|
# (1) Get absolute folder #
|
|
|
|
ROOT=$(dirname `realpath $0`);
|
|
|
|
ROOT=`dirname $ROOT`;
|
|
|
|
|
|
|
|
|
|
|
|
# (2) Start daemon
|
|
|
|
#--------------------------------------------------------#
|
|
|
|
while sleep 1; do
|
|
|
|
|
2018-01-30 21:53:40 +00:00
|
|
|
echo "GPIO`cat /home/sats/satsd/conf/machine.state`";
|
2018-01-28 17:28:59 +00:00
|
|
|
|
|
|
|
done;
|