#!/bin/sh ### BEGIN INIT INFO # Provides: telecontrol # Required-Start: $remote_fs $syslog stty0 tele wlancheck master # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: telemetry for control ### END INIT INFO while sleep 1; do tail -n 3 /home/board1/etc/mac.log | awk '/^([0-9][A-F])+:/{print $0}' > /home/board1/etc/control.log; tail -n 3 /home/board1/etc/mac.log | awk '/Link/{print "\t"$4}'>> /home/board1/etc/control.log; tail -n 2 /home/board1/tele/$(date +%d_%m_%y).tlm | awk '{if ($1 != NULL) {s = $2*0.0263; print "\tV="s}}' >> /home/board1/etc/control.log; tail -n 6 /home/board1/etc/$(date +%d_%m_%y).mst | awk '{print $0}' >> /home/board1/etc/control.log; done | echo $! > /home/board1/etc/control.pid&