packages/net/htpdate/files/htpdate.init
Tijs Van Buggenhout ce0fbf2ea2 htpdate: add htpdate package based on AA feed
Source homepage has changed, and sources are updated to version 1.1.1
released 25 August 2015.

Patch adjtimex still applies.

Changes in version 1.1.1:

- Fixed out of bound issue and a missing null-terminated string (thanks
  to Tobias Stöckmann)

Signed-off-by: Tijs Van Buggenhout <tvbuggen@netzerk.be>
2015-09-16 11:13:26 +02:00

19 lines
298 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=49
BIN=htpdate
DEFAULT=/etc/default/$BIN
RUN_D=/var/run
PID_F=$RUN_D/$BIN.pid
start() {
[ -f $DEFAULT ] && . $DEFAULT
mkdir -p $RUN_D
$BIN -l -s -t $OPTIONS && $BIN -D $OPTIONS
}
stop() {
[ -f $PID_F ] && kill $(cat $PID_F)
}