All of lore.kernel.org
 help / color / mirror / Atom feed
* udev: update rcS to auto-detect hostname
@ 2012-08-15  3:08 b19537
  2012-08-15  3:01 ` Khem Raj
  2012-08-15 14:01 ` Otavio Salvador
  0 siblings, 2 replies; 8+ messages in thread
From: b19537 @ 2012-08-15  3:08 UTC (permalink / raw)
  To: openembedded-core

From: Zhenhua Luo <b19537@freescale.com>

    the rootfs image can be reused by targets with same core type

Signed-off-by: Zhenhua Luo <b19537@freescale.com>
---
 meta/recipes-core/sysvinit/sysvinit/rcS |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-core/sysvinit/sysvinit/rcS b/meta/recipes-core/sysvinit/sysvinit/rcS
index 080b04f..51425ff 100755
--- a/meta/recipes-core/sysvinit/sysvinit/rcS
+++ b/meta/recipes-core/sysvinit/sysvinit/rcS
@@ -22,6 +22,11 @@ export PATH runlevel prevlevel
 . /etc/default/rcS
 
 #
+#       Update the hostname according to actual board type
+#
+echo `cat /proc/cpuinfo | grep model | cut -d "," -f 2 | tr "[A-Z]" "[a-z]"` > /etc/hostname
+
+#
 #	Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
 #
 trap ":" INT QUIT TSTP
-- 
1.7.0.4





^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-08-15 14:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-15  3:08 udev: update rcS to auto-detect hostname b19537
2012-08-15  3:01 ` Khem Raj
2012-08-15  4:06   ` McClintock Matthew-B29882
2012-08-15  4:12     ` Chris Larson
2012-08-15  4:21       ` McClintock Matthew-B29882
2012-08-15 13:53         ` Richard Purdie
2012-08-15  7:41   ` Koen Kooi
2012-08-15 14:01 ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.