16 lines
333 B
Bash
Executable File
16 lines
333 B
Bash
Executable File
#!/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; |