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:21:49 -0600 |
| commit | 64a98336d0f697d4b9e25b0a2fac92910ddae473 (patch) | |
| tree | e55dec4adc4e0dba3f677e24ae2f8c5a3fe9f3fb /recipes-append | |
| parent | e7126c3ebe829c56baa0a25075775846e8e8c7b1 (diff) | |
| download | meta-fsl-ppc-64a98336d0f697d4b9e25b0a2fac92910ddae473.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>
Diffstat (limited to 'recipes-append')
| -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=../" | ||
