mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
ntp: adjust crontab location for cronie
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -36,10 +36,10 @@ pkg_postinst_ntpdate() {
|
|||||||
if test "x$D" != "x"; then
|
if test "x$D" != "x"; then
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
if ! grep -q -s ntpdate /var/cron/tabs/root; then
|
if ! grep -q -s ntpdate /var/spool/cron/root; then
|
||||||
echo "adding crontab"
|
echo "adding crontab"
|
||||||
test -d /var/cron/tabs || mkdir -p /var/cron/tabs
|
test -d /var/spool/cron || mkdir -p /var/spool/cron
|
||||||
echo "30 * * * * /usr/bin/ntpdate -b -s -u pool.ntp.org" >> /var/cron/tabs/root
|
echo "30 * * * * /usr/bin/ntpdate -b -s -u pool.ntp.org" >> /var/spool/cron/root
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user