Browse Source

clockspeed: fixed clockctl.sh to exit 1 when the adjust fifo doesn't exist

user/amery/next/luajit
Alejandro Mery 14 years ago
parent
commit
2ae1918a85
  1. 8
      network/clockspeed/clockctl.sh

8
network/clockspeed/clockctl.sh

@ -3,7 +3,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../clockspeed/clockctl.sh # Filename: package/.../clockspeed/clockctl.sh
# Copyright (C) 2008 - 2011 The OpenSDE Project # Copyright (C) 2008 - 2012 The OpenSDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
# #
@ -51,12 +51,10 @@ case "$1" in
D_bindir/clockview < /var/state/clockspeed/atto D_bindir/clockview < /var/state/clockspeed/atto
;; ;;
m|mark) m|mark)
if [ ! -p /var/state/clockspeed/adjust ]; then [ -p /var/state/clockspeed/adjust ] ||
echo "Cannot obtain new calibration mark (clockspeed running?)" die "Cannot obtain new calibration mark (clockspeed running?)"
else
echo "Obtaining new calibration mark from master server at ${CLOCK_IP}:" echo "Obtaining new calibration mark from master server at ${CLOCK_IP}:"
clock_pick | tee /var/state/clockspeed/adjust | D_bindir/clockview clock_pick | tee /var/state/clockspeed/adjust | D_bindir/clockview
fi
;; ;;
s|sync) s|sync)
echo "Setting system clock with master server at ${CLOCK_IP}:" echo "Setting system clock with master server at ${CLOCK_IP}:"

Loading…
Cancel
Save