#!/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;