From d77cab5f4ba8f2ccf240bf14bb00b8156df5b7bb Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Tue, 16 Oct 2012 13:58:29 +0200 Subject: [PATCH] op_datetime.sh: Only stop / start ntpd if installed --- recipes/pandora-system/pandora-scripts/op_datetime.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/pandora-system/pandora-scripts/op_datetime.sh b/recipes/pandora-system/pandora-scripts/op_datetime.sh index d704437..2d301af 100644 --- a/recipes/pandora-system/pandora-scripts/op_datetime.sh +++ b/recipes/pandora-system/pandora-scripts/op_datetime.sh @@ -63,14 +63,14 @@ case $mainsel in ;; "sync") ( - sudo /etc/init.d/ntpd stop + test -e /etc/init.d/ntpd && sudo /etc/init.d/ntpd stop sudo ntpdate pool.ntp.org ) | zenity --progress \ --title="Syncing..." \ --text="Syncing with time server...\nPlease wait a while..." \ --pulsate - sudo /etc/init.d/ntpd start + test -e /etc/init.d/ntpd && sudo /etc/init.d/ntpd start ;; esac done -- 2.39.2