busybox: enable less options for systemd

There are a number of options that make busybox-less work better
with systemd's pager expectations.  Add them in.

Also, add in a few options for usability.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I54f16543e903be1db247cfb85181dd415e048884
diff --git a/recipes-core/busybox/busybox/less.cfg b/recipes-core/busybox/busybox/less.cfg
new file mode 100644
index 0000000..2b45227
--- /dev/null
+++ b/recipes-core/busybox/busybox/less.cfg
@@ -0,0 +1,10 @@
+## In orer to make systemd-pager work well there are a number of busybox less
+## features we need to enable.
+CONFIG_FEATURE_LESS_DASHCMD=y
+CONFIG_FEATURE_LESS_RAW=y
+CONFIG_FEATURE_LESS_ENV=y
+
+## These are nice features for users.
+CONFIG_FEATURE_LESS_WINCH=y
+CONFIG_FEATURE_LESS_ASK_TERMINAL=y
+CONFIG_FEATURE_LESS_REGEXP=y
diff --git a/recipes-core/busybox/busybox_%.bbappend b/recipes-core/busybox/busybox_%.bbappend
index 8907b08..9433b5c 100644
--- a/recipes-core/busybox/busybox_%.bbappend
+++ b/recipes-core/busybox/busybox_%.bbappend
@@ -1,5 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 SRC_URI += "file://busybox.cfg"
 SRC_URI += "file://flash.cfg"
+SRC_URI += "file://less.cfg"
 SRC_URI += "file://mountpoint.cfg"
 SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'obmc-ubi-fs', '', 'file://reboot.cfg', d)}"