meta-facebook: obmc-console: Add client configuration to specify exit sequence
It can be fairly difficuly to specify a non-printable character
as an escape sequence to obmc-console-client using the -e parameter.
Thus, add a client configuration which can be used by users and
other scripted tooling to specify the escape sequence expected
by FB machine users.
Tested on yosemite4:
```
obmc-console-client -c /etc/obmc-console/client.conf -i host1
<Issue Ctrl+Lx to observe that we exit the console>
```
Change-Id: Iefe3b23dbbb8a11e52d2b09e8b0d4095f30f0ee1
Signed-off-by: Amithash Prasasd <amithash@meta.com>
diff --git a/meta-facebook/recipes-phosphor/console/obmc-console/client.conf b/meta-facebook/recipes-phosphor/console/obmc-console/client.conf
new file mode 100644
index 0000000..d84c004
--- /dev/null
+++ b/meta-facebook/recipes-phosphor/console/obmc-console/client.conf
@@ -0,0 +1,3 @@
+# Specify the escape sequence <Ctrl+L>x which is usable by
+# existing FB tooling.
+escape-sequence = x
diff --git a/meta-facebook/recipes-phosphor/console/obmc-console_%.bbappend b/meta-facebook/recipes-phosphor/console/obmc-console_%.bbappend
index 9f6022c..44701c8 100644
--- a/meta-facebook/recipes-phosphor/console/obmc-console_%.bbappend
+++ b/meta-facebook/recipes-phosphor/console/obmc-console_%.bbappend
@@ -11,3 +11,8 @@
SERVER_CONFS = "${@ ' '.join([ f'file://server.{i}.conf' for i in d.getVar('OBMC_CONSOLE_TTYS', True).split() ])}"
SRC_URI:append = " ${SERVER_CONFS}"
+SRC_URI:append = " file://client.conf "
+
+do_install:append() {
+ install -m 0644 ${WORKDIR}/client.conf ${D}${sysconfdir}/${BPN}/client.conf
+}