x86: preinit: make name rewrite into reusable function
authorPhilip Prindeville <philipp@redfish-solutions.com>
Mon, 30 Oct 2017 18:31:04 +0000 (12:31 -0600)
committerJo-Philipp Wich <jo@mein.io>
Thu, 4 Jan 2018 12:44:42 +0000 (13:44 +0100)
There might be other places (such as vendor-supplied preinit scripts)
where we wish to take a DMI name and clean it up in a consistent way,
so make the sed command into a function.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>

No differences found