Tiny Core Extensions > TCE Bugs

dhclient (v11.1) does not work (missing file)

<< < (3/4) > >>

Roberto A. Foglietta:
@Andyj, any news about the dhclient repackaging?

andyj:
The script you posted looks very different from the one that comes with the source. If I include that one, who will maintain it? Do you want to take over maintaining the dhcp extension?

Roberto A. Foglietta:

--- Quote from: andyj on August 13, 2021, 05:10:26 PM ---The script you posted looks very different from the one that comes with the source. If I include that one, who will maintain it? Do you want to take over maintaining the dhcp extension?

--- End quote ---

I took the first script I found and the only change I did was adding 2>/dev/null to ignore some harmless error.
I suggest you to go with the script that comes with the dhclient source tarball.  You can test your it with this:

https://github.com/robang74/tinycore-editor

Follow the README.txt for the quick steps. In the tinycore/tinycore.conf choose the 22MB selection of TCZ that have dhclient.
The distro boot with nodhcp and then do dhcp into afterboot.sh - but this detail is irrelevant, when you do dhclient in the console the script will run. Just a suggestion: delete the dhclient cache in such a way it tries do get the ip from scratch.

andyj:
This extension is intended to be for a dhcp server. That it has a client is a bonus, but as TC already has a dhcp client I don't see a need to debug a script I have little time to do and no use for. Apparently you are the one and only person who does want to use the client functionality. I will include the script that comes with the source tarball, but the script you are using sounds like something that is probably custom to your installation. You should plan on maintaining your copy of it along with your config files.

Roberto A. Foglietta:

--- Quote from: andyj on August 13, 2021, 06:48:21 PM ---I will include the script that comes with the source tarball

--- End quote ---

Let me know when it will be ready the new tcz. I will test for you.

Take in consideration that the script will require bash to run, so bash would be a dependency of dhclient/server.

Differently the #!/bin/bash at the beginning of the script should be changed in #!/bin/ash. It is up to you.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version