diff options
Diffstat (limited to 'net-misc/ntp/files/ntp-client.rc')
-rw-r--r-- | net-misc/ntp/files/ntp-client.rc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net-misc/ntp/files/ntp-client.rc b/net-misc/ntp/files/ntp-client.rc index 704f2daea3ea..05cce75c2bcf 100644 --- a/net-misc/ntp/files/ntp-client.rc +++ b/net-misc/ntp/files/ntp-client.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v 1.9 2007/01/09 17:51:14 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v 1.10 2007/02/23 11:26:26 uberlord Exp $ depend() { before cron portmap @@ -10,12 +10,12 @@ depend() { } checkconfig() { - if ! type -p ${NTPCLIENT_CMD} > /dev/null ; then + if ! type "${NTPCLIENT_CMD}" >/dev/null 2>/dev/null ; then eerror "Please edit /etc/conf.d/ntp-client" eerror "Unable to locate the client command ${NTPCLIENT_CMD}!" return 1 fi - if [[ -z ${NTPCLIENT_OPTS} ]] ; then + if [ -z "${NTPCLIENT_OPTS}" ] ; then eerror "Please edit /etc/conf.d/ntp-client" eerror "I need to know what server/options to use!" return 1 @@ -27,6 +27,6 @@ start() { checkconfig || return $? ebegin "Setting clock via the NTP client '${NTPCLIENT_CMD}'" - ${NTPCLIENT_CMD} ${NTPCLIENT_OPTS} >/dev/null & + "${NTPCLIENT_CMD}" ${NTPCLIENT_OPTS} >/dev/null & eend $? "Failed to set clock" } |