diff options
author | Zhenhua Luo <b19537@freescale.com> | 2012-09-19 15:33:28 +0000 |
---|---|---|
committer | Matthew McClintock <msm@freescale.com> | 2012-11-13 11:12:57 -0600 |
commit | 992cd2833882741ece35b127d0928627c9594c38 (patch) | |
tree | 50e9634d22a17045e6828a80b884b216a61b2b96 | |
parent | 92069cce9b0ecd5edf83f5a251873aa33c7e7fb6 (diff) | |
download | meta-fsl-ppc-992cd2833882741ece35b127d0928627c9594c38.tar.gz |
sysvinit: move bbappend from meta-fsl-ppc-private to meta-fsl-ppc
the bbappend is appled for fsl machines
Signed-off-by: Zhenhua Luo <b19537@freescale.com>
-rw-r--r-- | recipes-append/sysvinit/files/auto-detect-hostname.patch | 16 | ||||
-rw-r--r-- | recipes-append/sysvinit/sysvinit_2.88dsf.bbappend | 5 |
2 files changed, 21 insertions, 0 deletions
diff --git a/recipes-append/sysvinit/files/auto-detect-hostname.patch b/recipes-append/sysvinit/files/auto-detect-hostname.patch new file mode 100644 index 0000000..da70184 --- /dev/null +++ b/recipes-append/sysvinit/files/auto-detect-hostname.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | diff --git a/rcS b/rcS | ||
2 | index 080b04f..51425ff 100755 | ||
3 | --- a/rcS | ||
4 | +++ b/rcS | ||
5 | @@ -22,6 +22,11 @@ export PATH runlevel prevlevel | ||
6 | . /etc/default/rcS | ||
7 | |||
8 | # | ||
9 | +# Update the hostname according to actual board type | ||
10 | +# | ||
11 | +echo `cat /proc/cpuinfo | grep model | cut -d "," -f 2 | tr "[A-Z]" "[a-z]"` > /etc/hostname | ||
12 | + | ||
13 | +# | ||
14 | # Trap CTRL-C &c only in this shell so we can interrupt subprocesses. | ||
15 | # | ||
16 | trap ":" INT QUIT TSTP | ||
diff --git a/recipes-append/sysvinit/sysvinit_2.88dsf.bbappend b/recipes-append/sysvinit/sysvinit_2.88dsf.bbappend new file mode 100644 index 0000000..9c9dc75 --- /dev/null +++ b/recipes-append/sysvinit/sysvinit_2.88dsf.bbappend | |||
@@ -0,0 +1,5 @@ | |||
1 | FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:" | ||
2 | |||
3 | PR_fsl .= "+${DISTRO}.1" | ||
4 | |||
5 | SRC_URI_append_fsl = " file://auto-detect-hostname.patch;patchdir=../" | ||