From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 02268E009D9; Thu, 16 Jul 2015 17:24:31 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.55.86.74 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from smtp.webfaction.com (mail6.webfaction.com [74.55.86.74]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C862AE009D2 for ; Thu, 16 Jul 2015 17:24:25 -0700 (PDT) Received: from [192.168.1.10] (c-73-194-208-34.hsd1.nj.comcast.net [73.194.208.34]) by smtp.webfaction.com (Postfix) with ESMTP id DB83821664A1; Fri, 17 Jul 2015 00:24:22 +0000 (UTC) Message-ID: <55A84B34.7000201@mindchasers.com> Date: Thu, 16 Jul 2015 20:24:20 -0400 From: Bob Cochran User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Alvaro Martinez Tovar , Wally Yeh References: <1861656722.4699532.1437041003802.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <1861656722.4699532.1437041003802.JavaMail.yahoo@mail.yahoo.com> Cc: "meta-freescale@yoctoproject.org" Subject: Re: static ip X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 00:24:31 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 > *Para:* > *CC:* "meta-freescale@yoctoproject.org" > *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 > meta-freescale@yoctoproject.org > https://lists.yoctoproject.org/listinfo/meta-freescale > > > >