dhcpcd in rc.local not working in cross-imaged puppy

Post Reply
Message
Author
turbodig
Posts: 4
Joined: Fri 20 Feb 2009, 19:05

dhcpcd in rc.local not working in cross-imaged puppy

#1 Post by turbodig »

I've got the following in my /etc/rc.d/rc.local: (Puppy 4.21)
(I've got the appropriate nic modules loading at boot)

Code: Select all

ifconfig eth0 up
rm /etc/dhcpc/dhcpcd-eth0.*
sleep 5
dhcpcd -t 10 eth0

.... but, I get no IP address.

.....but, if I open an xterm window and type:

dhcpcd -t 10 eth0

I get an IP address, and it works fine, until the next reboot. It's as if the rc.local happens too soon for dhcpcd to be able to work?

If I use the puppy Network setup wizard, it also seems to work fine.
(even after the reboot)

I guess my question, really, is what does the network wizard do under the covers, when you click 'save'?

Thanks,

Scott

Buenavista
Posts: 16
Joined: Mon 23 Jan 2012, 07:43

#2 Post by Buenavista »

Hi chaps,

Exactly the same issue for me. No reply!

In fact the wizzard perform well, but it doesn't save the config. What happened?

Regards.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#3 Post by disciple »

You'd be much better off posting in a new thread.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Buenavista
Posts: 16
Joined: Mon 23 Jan 2012, 07:43

#4 Post by Buenavista »

Hi,

Well this post is referenced in google (that's how I am here), so somebody having the same issue would land here directly isn't it?

A new post would not be refferenced imediatly and I think the solution would have to be newly posted again and again (I am pretty sure that's what happened anyway ... unfortunately the reference in google is just a question with no answer). In fact that the whole problematic behind posting new every time ... That does a bad interaction with google referencing (And google is far better than the search feature of the forum even if it's pretty good. In addition google is even recommended on top of the search feature ...).

In fact I meet a lot of issues, with puppy even if it remains appealing. For me that's quite natural since both windows and unbuntu comes with their numerous issues, but most of the post dealing with my issues are empty answer, while I know this is something that have been dealt.

So the real solution would be that an experimented chaps post the link of the best solution, if any ! I am a Puppy linux newbie (I don't like this non respectuous pejorative "Newbie" but anyway) so I am suggesting the following:

I would try the following tonight:
http://www.murga-linux.com/puppy/viewtopic.php?p=282586

And keep this referenced post up do tade if it works.

Regards,

Buenavista
Posts: 16
Joined: Mon 23 Jan 2012, 07:43

#5 Post by Buenavista »

Hi chaps,

What is suggested in the link that I posted previously is ok. It works for puppy528. Please find here a quick resume:
Open a terminal then go to
/etc/rc.d
and create a file (ex type geany wifi.sc&) with the following contains:

iwconfig eth1 key 000000
rm -f /var/lib/dhcpcd/*.info
rm -f /var/run/*.pid
dhcpcd -t 30 -h puppyc -d eth1

of course eth1 and 0000000 should be adapted to your environment.

then save and close the file and type in the terminal
chmod 755 wifi.sc

(normaly this file should run your wifi config ok, you could give try by typing the comand: /etc/rc.d/wifi.sc )

then open the file rc.network and go down to the end before the word "exit" then type:
#Johnny Omara FEB 2012
echo "Get an access to internet">/dev/console

/etc/rc.d/wifi.sc

And then it should work perfectly.

Form my own perspective I think erasing the whole rc.network and puting there the manual config would be an optimisation. Maybe not...

Regards,

Post Reply