[OE-core] [oe-core] udev: update rcS to auto-detect hostname
Otavio Salvador
otavio at ossystems.com.br
Wed Aug 15 14:01:18 UTC 2012
On Wed, Aug 15, 2012 at 12:08 AM, <b19537 at freescale.com> wrote:
> +# 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.
This seems to fit well to a BSP init script; seems to be very machine
specific so it doesn't seem to be supported by other arch and
machines.
--
Otavio Salvador O.S. Systems
E-mail: otavio at ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
More information about the Openembedded-core
mailing list