On 07/16/2015 06:03 AM, Alvaro Martinez Tovar wrote:
Sorry for I am a newbie with little experience in linux, and may ask for
obvious solutions ....
How can I know whether it is executed or not and when it is executed?
Regards,
alvaro
------------------------------------------------------------------------
*De:* Wally Yeh <[email protected]>
*Para:*
*CC:* "[email protected]" <[email protected]>
*Enviado:* Jueves 16 de julio de 2015 10:31
*Asunto:* Re: [meta-freescale] static ip
> After boot, this is what I can see with ifconfig eth0 command:
> NO static ip is set on eth0 for inet
>
> eth0 Link encap:Ethernet HWaddr 00:04:9F:03:9F:FD
> inet6 addr: fe80::204:9fff:fe03:9ffd/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 B) TX bytes:4642 (4.5 KiB)
>
> However, if I execute:
> /etc/init.d/networking restart
> everything seems to work and I can connect to static ip
>
> Any suggestion will be very appreciated.
> Thank you in advance
it seems like /etc/init.d/networking is not executed at boot or
executed when bad timing.
Since you say you're new to Linux, the following might be helpful to
know in debugging your init scripts:
You can add a "set -x" to the top of your networking script to see what
it's doing and how it's evaluating the conditional logic in the script (
don't actually include the quotes ).
Add some additional echo statements in your scripts to help you figure
out what's going on. You can also do the same with other scripts in
the init.d directory.
You're probably booting up at runlevel 5 ( see inittab ). You can see
the order of your initscripts booting by looking in the /etc/rc5.d
directory. You can also play around with the ordering of initialization
by changing the prefix number of the file names ( they are symbolic
links back to the /etc/init.d directory.
Wally
--
_______________________________________________
meta-freescale mailing list
[email protected] <mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/meta-freescale
--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale