From d94c23485b50cfaba9c20e29e5409cb5279baf95 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 26 Oct 2011 15:45:59 +0200 Subject: [PATCH] clockspeed: fixed clockctl.sh to check if clockspeed's adjust fifo is there before trying to write clock marks --- network/clockspeed/clockctl.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/network/clockspeed/clockctl.sh b/network/clockspeed/clockctl.sh index ba3332ad8..47f9c9c10 100644 --- a/network/clockspeed/clockctl.sh +++ b/network/clockspeed/clockctl.sh @@ -3,7 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../clockspeed/clockctl.sh -# Copyright (C) 2008 - 2010 The OpenSDE Project +# Copyright (C) 2008 - 2011 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -51,8 +51,12 @@ case "$1" in D_bindir/clockview < /var/state/clockspeed/atto ;; m|mark) - echo "Obtaining new calibration mark from master server at ${CLOCK_IP}:" - clock_pick | tee /var/state/clockspeed/adjust | D_bindir/clockview + if [ ! -p /var/state/clockspeed/adjust ]; then + echo "Cannot obtain new calibration mark (clockspeed running?)" + else + echo "Obtaining new calibration mark from master server at ${CLOCK_IP}:" + clock_pick | tee /var/state/clockspeed/adjust | D_bindir/clockview + fi ;; s|sync) echo "Setting system clock with master server at ${CLOCK_IP}:"