From 32721433e01f18dd83a295ed4e3579ad40537354 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 19 Dec 2016 19:27:22 -0600 Subject: add features to busybox to debug ntp and set nice to -20 for ntp --- recipes-support/ntp/files/ntpd-init.patch | 11 +++++++++++ recipes-support/ntp/ntp_4.2.6p5.bbappend | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 recipes-support/ntp/files/ntpd-init.patch create mode 100644 recipes-support/ntp/ntp_4.2.6p5.bbappend (limited to 'recipes-support/ntp') diff --git a/recipes-support/ntp/files/ntpd-init.patch b/recipes-support/ntp/files/ntpd-init.patch new file mode 100644 index 0000000..fc388f8 --- /dev/null +++ b/recipes-support/ntp/files/ntpd-init.patch @@ -0,0 +1,11 @@ +--- old/ntpd 2016-12-19 18:11:58.022663976 -0600 ++++ new/ntpd 2016-12-19 18:12:56.618663852 -0600 +@@ -23,7 +23,7 @@ + # this. If ntpd seems to disappear after a while assume TICKADJ + # above is set to a totally incorrect value. + echo -n "Starting ntpd: " +- start-stop-daemon --start -x /usr/sbin/ntpd -- -u ntp:ntp -p /var/run/ntp.pid "$@" ++ start-stop-daemon -N -20 --start -x /usr/sbin/ntpd -- -u ntp:ntp -p /var/run/ntp.pid "$@" + echo "done" + } + stopdaemon(){ diff --git a/recipes-support/ntp/ntp_4.2.6p5.bbappend b/recipes-support/ntp/ntp_4.2.6p5.bbappend new file mode 100644 index 0000000..528c6c9 --- /dev/null +++ b/recipes-support/ntp/ntp_4.2.6p5.bbappend @@ -0,0 +1,11 @@ +PR .= ".mlinux1" + +SRC_URI += " file://ntpd-init.patch;patchdir=.. \ + " +FILESEXTRAPATHS_prepend := "${THISDIR}/files" + +python do_patch_prepend () { + import os + cwd = os.getcwd() + bb.note("Hello %s",cwd) +} -- cgit v1.2.3