]> git.openpandora.org Git - openembedded.git/commitdiff
initrdscripts: Do machine detection function refactor per RFC.
authorPaul Sokolovsky <pmiscml@gmail.com>
Wed, 26 Dec 2007 01:10:48 +0000 (01:10 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Wed, 26 Dec 2007 01:10:48 +0000 (01:10 +0000)
* Need to fix this, need to use good common codebase, because debugging
why some adhoc code doesn't work here or there is big waste of time.

packages/initscripts/initscripts-1.0/functions
packages/initscripts/initscripts_1.0.bb

index 358fc6edb3f4f4f8391e8d245590020046a1e967..fb9a914e4d8a662cd6cf9cbd9ea5b4b322d04262 100644 (file)
@@ -4,8 +4,8 @@
 #               shell scripts in the /etc/init.d directory.
 #
 
-cpuinfo_id() {         # return the Hardware module ID
-    awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
+machine_id() {         # return the machine ID
+    awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
 }
 
 killproc() {           # kill the named process(es)
index 7fab41858b46f4e8d46606860c7650cfd5b1bb0b..4433d1231831e1e45215cce802e3780f3c309404 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "required"
 DEPENDS = "makedevs"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r103"
+PR = "r104"
 
 SRC_URI = "file://functions \
            file://halt \