summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-12-26 01:10:48 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-12-26 01:10:48 +0000
commitd717570ad180da61707b73127a76ac724b791483 (patch)
tree3e09b5c82054025ff40496343a2cddd3d9fdbb72 /packages
parent9409604e27ecd5fe20cecb0cf98ff602a5061856 (diff)
initrdscripts: Do machine detection function refactor per RFC.
* 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.
Diffstat (limited to 'packages')
-rw-r--r--packages/initscripts/initscripts-1.0/functions4
-rw-r--r--packages/initscripts/initscripts_1.0.bb2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/initscripts/initscripts-1.0/functions b/packages/initscripts/initscripts-1.0/functions
index 358fc6edb3..fb9a914e4d 100644
--- a/packages/initscripts/initscripts-1.0/functions
+++ b/packages/initscripts/initscripts-1.0/functions
@@ -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)
diff --git a/packages/initscripts/initscripts_1.0.bb b/packages/initscripts/initscripts_1.0.bb
index 7fab41858b..4433d12318 100644
--- a/packages/initscripts/initscripts_1.0.bb
+++ b/packages/initscripts/initscripts_1.0.bb
@@ -4,7 +4,7 @@ PRIORITY = "required"
DEPENDS = "makedevs"
RDEPENDS = "makedevs"
LICENSE = "GPL"
-PR = "r103"
+PR = "r104"
SRC_URI = "file://functions \
file://halt \