From d54cdeee2d34518442f0f685bb5e494047f4ce4b Mon Sep 17 00:00:00 2001 From: Adrian Alonso Date: Tue, 3 Aug 2010 06:23:21 +0000 Subject: initscripts: functions machine id xilinx virtex5 platforms * Add machine_id support for xilinx virtex platforms used in xserver-common for args settings. * On Xilinx platforms there is no line `Hardware`. Instead it is stored in the line starting with `platform`. * Bump PR * v2 nicer machine_id function for handling xilinx virtex platforms Signed-off-by: Adrian Alonso Acked-by: Frans Meulenbroeks --- recipes/initscripts/files/functions | 6 +++++- recipes/initscripts/initscripts_1.0.bb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'recipes') diff --git a/recipes/initscripts/files/functions b/recipes/initscripts/files/functions index fb9a914e4d..51c1f13261 100644 --- a/recipes/initscripts/files/functions +++ b/recipes/initscripts/files/functions @@ -5,7 +5,11 @@ # machine_id() { # return the machine ID - awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($2) } '