obmc-console: clean up service file
An old TODO was left in and never resolved. The
ExecStart directive did some bash invocations
because older versions of the server did not support
a parameter which was a /dev alias, like /dev/ttyVUART0,
and instead always required real devices like 'ttyS2'.
Latest versions of obmc-console support ttyVUART0 as a
parameter, so use it directly.
Change-Id: I8539d7e5e65888f129486d7a79bf032f343fd4b7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/common/recipes-phosphor/console/obmc-console/obmc-console@.service b/common/recipes-phosphor/console/obmc-console/obmc-console@.service
index c50b3b1..e28b069 100644
--- a/common/recipes-phosphor/console/obmc-console/obmc-console@.service
+++ b/common/recipes-phosphor/console/obmc-console/obmc-console@.service
@@ -4,8 +4,7 @@
After=dev-%i.device
[Service]
-# TODO: openbmc/obmc-console#5 - Restore this to 'obmc-console-server ttyVUART0'
-ExecStart=/bin/sh -c 'realpath /dev/%i | xargs basename | xargs {sbindir}/obmc-console-server --config {sysconfdir}/obmc-console.conf'
+ExecStart={sbindir}/obmc-console-server --config {sysconfdir}/obmc-console.conf %i
Restart=always
[Install]