From 6d87496e1c8dd3f469938b1e5eefec218d9e7e75 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jun 2016 00:34:52 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- init.d/ntp-client | 2 +- init.d/ntpd | 4 ++-- init.d/sntp | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/init.d/ntp-client b/init.d/ntp-client index 451bb3e..93375b4 100755 --- a/init.d/ntp-client +++ b/init.d/ntp-client @@ -1,4 +1,4 @@ -#!/sbin/runscript +#!/sbin/openrc-run # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ diff --git a/init.d/ntpd b/init.d/ntpd index f89bdd3..5bed5ce 100755 --- a/init.d/ntpd +++ b/init.d/ntpd @@ -1,5 +1,5 @@ -#!/sbin/runscript -# Copyright 1999-2014 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ diff --git a/init.d/sntp b/init.d/sntp index b0261d9..5b3b463 100755 --- a/init.d/sntp +++ b/init.d/sntp @@ -1,15 +1,17 @@ -#!/sbin/runscript -# Copyright 1999-2013 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ +command="/usr/bin/sntp" + depend() { before cron portmap after net use dns logger } -checkconfig() { +start_pre() { if [ -z "${SNTP_OPTS}" ] ; then eerror "Please edit /etc/conf.d/sntp" eerror "I need to know what server/options to use!" @@ -19,9 +21,7 @@ checkconfig() { } start() { - checkconfig || return $? - ebegin "Setting clock via SNTP" - /usr/bin/sntp ${SNTP_OPTS} + ${command} ${SNTP_OPTS} eend $? "Failed to set clock" } -- 2.39.5