Build with custom settings

Hi Guys,

Could someone tell me a way to change the initial settings before building the image?

Ex: change the 'httpd' port from 80 to 8080 ..
set default root password ..

Sorry for the layman's question, I tried to search the forum and I didn't find it (or didn't know how to search it right ..)

Well if you're building (ie compiling) your own image, you can use the forward slash as a search function in the buildroot to locate what you need.

1 Like

I don’t see a specific config setting unfortunately , so looks like you’d need to modify this file https://github.com/openwrt/openwrt/blob/7f2b230b3b9d0a7fb758db3a9b1958845506a5a3/package/network/services/uhttpd/files/uhttpd.config

Or bake your own changes into the file /etc/httpd.conf before the image is assembled

1 Like

+1 for that.

You can include your own settings as custom files in image.

Also works with imagebuilder, if you are using that instead of the whole toolchain

2 Likes

Thank you very much for your advice, gentlemen!
Got what to do what I needed

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.