Where is the udhcpd.conf file located?
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.
We have moved to a new Sailfish OS Forum. Please start new discussions there.
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.
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).
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 )editHmm, 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 )editVersion 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 )editCool, 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 )editI 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 )editfind / -type f -iname *dhcp*
should return the files you are looking for
everything else is probably done by connman
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/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 )editThis thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2015-08-16 12:58:14 +0200
Seen: 424 times
Last updated: Aug 19 '15
Have you tried to search the filesystem with a search tool or just manually?
jollailija ( 2015-08-16 13:15:04 +0200 )editI 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 )editTrying to bump this thread
Psycho Squid ( 2015-08-19 18:50:08 +0200 )edit