summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes/initscripts/files/functions2
-rw-r--r--recipes/initscripts/initscripts_1.0.bb4
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/initscripts/files/functions b/recipes/initscripts/files/functions
index 51c1f13261..b9dca1f96b 100644
--- a/recipes/initscripts/files/functions
+++ b/recipes/initscripts/files/functions
@@ -6,7 +6,7 @@
machine_id() { # return the machine ID
id=`awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo`
- if [ -n "$id" ]; then
+ if [ -z "$id" ]; then
id=`awk 'BEGIN { FS=": " } /platform/ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo`
fi
echo -n "$id"
diff --git a/recipes/initscripts/initscripts_1.0.bb b/recipes/initscripts/initscripts_1.0.bb
index 38fe85e650..8c38d7fc9b 100644
--- a/recipes/initscripts/initscripts_1.0.bb
+++ b/recipes/initscripts/initscripts_1.0.bb
@@ -4,7 +4,7 @@ PRIORITY = "required"
DEPENDS = "makedevs"
RDEPENDS_${PN} = "makedevs"
LICENSE = "GPL"
-PR = "r122"
+PR = "r123"
SRC_URI = "file://functions \
file://halt \
@@ -35,7 +35,7 @@ SRC_URI = "file://functions \
SRC_URI_append_arm = " file://alignment.sh"
-CONFFILES_${PN} += "${sysconfdir}/device_table"
+CONFFILES_${PN} += "${sysconfdir}/device_table"
KERNEL_VERSION = ""