Habe jetzt mal ein wenig mit fp_control -s gespielt:
fp_control -s 09:38:31 12-09-2014 --> setzt die Zeit richtig, Datum wird ignoriert
fp_control -s 09:38:31 --> Zeit wird nicht gesetzt
fp_control -s "$(date | cut -d" " -f4)" --> Zeit wird nicht gesetzt
fp_control -s "$(date +%H:%m:%S" "%d-%m-%Y)" -->wird nicht gesetzt
Hmm, alles gemein.
MfG
edit:
Und hier passiert was merkwürdiges.
edit sagt:fp_control -s $(echo "$(date +%H:%m:%S" "%d-%m-%Y)");fp_control -g;date
fp_control Version 1.05NdV 20140810.1
Receiver: spark7162
Configuration of receiver:
Display: 1 Time format: %H:%M:%S
Displaycustom: 1 Wakeupdecrement: 5 mins
Frontprocessor time set: 10:11:08 (date ignored)
fp_control Version 1.05NdV 20140810.1
Receiver: spark7162
Configuration of receiver:
Display: 1 Time format: %H:%M:%S
Displaycustom: 1 Wakeupdecrement: 5 mins
Frontprocessor time: 10:11:00 01-01-1970
Wed Nov 12 10:10:08 CET 2014
Mea culpa, muss ein M für Minute sein, dann klappt es auch.
Jetzt könnte man ein script als Nothilfe über cron laufen lassen.
MfG#!/bin/sh
if [ ! "$(fp_control -g | grep time |cut -d" " -f3)" = "$(date +%H:%M:%S)" ];the
echo "Zeit ist falsch"
fp_control -s $(echo "$(date +%H:%M:%S" "%d-%m-%Y)")
else
echo "Zeit ist richtig"
fi