We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Where is the udhcpd.conf file located?

asked 2015-08-16 12:58:14 +0200

Psycho Squid gravatar image

updated 2015-08-16 12:59:29 +0200

Where is the udhcpd.conf file located? I cannot find it in the filesystem. I want to change the setting so I can set static DHCP client IP for a MAC-address when WIFI-tethering is enabled. Thanks beforehand.

edit retag flag offensive close delete

Comments

Have you tried to search the filesystem with a search tool or just manually?

jollailija ( 2015-08-16 13:15:04 +0200 )edit

I searched with:

devel-su

find -name dhcpd.conf

Weird we cannot find the file as it should be used by the DHCP daemon?

Psycho Squid ( 2015-08-16 13:43:19 +0200 )edit

Trying to bump this thread

Psycho Squid ( 2015-08-19 18:50:08 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2015-08-16 13:44:51 +0200

Spam Hunter gravatar image

updated 2015-08-16 13:45:34 +0200

The udhcpd.conf file exists at /run/usb-moded/ but contains 0 bytes (perhaps this is why it is not found when using any SEARCH facility of any given file browser).

edit flag offensive delete publish link more

Comments

I looked there but no file to be found. I run in devel-su mode so I can access the list of files.

Psycho Squid ( 2015-08-16 13:58:07 +0200 )edit

Hmm, which version of SailfishOS is on your device?, I'm on 1.1.7.27 (opt-in).

Spam Hunter ( 2015-08-16 14:55:19 +0200 )edit

Version 1.1.6.27. I know there is a change to the position of the file in the version your device has.

Psycho Squid ( 2015-08-16 15:38:44 +0200 )edit

Cool, thanks for updating me regarding the change of position of the said file and you're right, as it existed in the /etc folder on the previous OS.

Have you tried searching the file using a file browser?, with all settings so that hidden and system files show...?, you keep mentioning that you 'devel-su' which says you're using Terminal to access the system.

I have also just tried your instructions and you are correct, I can't find the file that clearly is on my device, using Terminal but I can find it using a dedicated file browser.

Spam Hunter ( 2015-08-16 19:25:27 +0200 )edit

I run devel-su to get higher rights to see and access all files. I have tried a file browser but still cannot find the file. I am starting to wonder if udhcpd is in use?

Psycho Squid ( 2015-08-16 19:32:13 +0200 )edit
0

answered 2015-08-19 19:23:51 +0200

chemist gravatar image

updated 2015-08-19 19:26:14 +0200

find / -type f -iname *dhcp*

should return the files you are looking for

everything else is probably done by connman

edit flag offensive delete publish link more

Comments

This is what I got:

[root@Jolla nemo]# find / -type f -iname udhcp*

/etc/usb-moded/run/udhcpd-developer-mode.ini

/usr/share/doc/wpa_supplicant-2.2+git4/examples/udhcpd-p2p.conf

/lib/systemd/system/udhcpd.service

/opt/alien/lib/systemd/system/udhcpd.service

/opt/alien/usr/share/doc/wpa_supplicant-2.2+git4/examples/udhcpd-p2p.conf

/opt/alien/etc/usb-moded/run/udhcpd-developer-mode.ini

[root@Jolla nemo]#

Is the udhcpd maybe not used for client DHCP leases?

Psycho Squid ( 2015-08-19 19:50:38 +0200 )edit
1

/etc/udhcpcd.conf gets created by usb-moded when using tethering or network mode. It is a symlink to /run/usb-moded/udhcpcd.conf

Otherwise it does not exist.

https://github.com/nemomobile/usb-moded/blob/master/src/usb_moded-network.c#L309

Also we're in the process of having the usb interface and tethering also switched to connman

Philippe De Swert ( 2015-08-19 22:17:16 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-08-16 12:58:14 +0200

Seen: 424 times

Last updated: Aug 19 '15