systemd-serialgetty: change to handle SERIAL_CONSOLES
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 30 Apr 2013 14:33:51 +0000 (15:33 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 May 2013 16:41:54 +0000 (17:41 +0100)
commit4badcd31486944b203b47bc326e0bff880b79f84
treef1757f07c5662f4d9a314b51e35d1991a0fee01a
parente53b8830bb7678ca95ed313b5a05760a9eb2684e
systemd-serialgetty: change to handle SERIAL_CONSOLES

SERIAL_CONSOLES is now set from SERIAL_CONSOLE if not already set.

This is a little bit gnarly because we have to create a separate service
file for each different baud rate; assume that the first baud rate is
the default, thus preserving the previous behaviour in the event there
is only one baud rate in use.

This change also installs the service file before modifying it in place,
allowing do_install to re-execute properly; additionally the service
file now has the correct permissions (i.e. no execute bit set).

(From OE-Core rev: cd89a71d0c3dce14d59134667bc47fa8210cfa7a)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd-serialgetty.bb