mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user