diff options
| author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-08-13 11:04:58 +0200 |
|---|---|---|
| committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-08-13 11:04:58 +0200 |
| commit | 294f5bb1395138045b1bf9403d9cc47014b1a825 (patch) | |
| tree | b278f0a46c6f1e9bd806e2d94d87c35d485437a6 /recipes/initscripts/files/functions | |
| parent | 4b2780d203083dc4647fc81e7d978579620bfeaf (diff) | |
| parent | 8786dbcabdb3f9c0dec743298af8b4e7005a3b0a (diff) | |
Merge branch 'org.openembedded.dev' of git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/initscripts/files/functions')
| -rw-r--r-- | recipes/initscripts/files/functions | 2 |
1 files changed, 1 insertions, 1 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" |
