Which configuration files in /etc/config have priority?


I have what seems to be duplicates of configuration files in the /etc/config folder. Not direct duplicates, but the pattern:

For example:
-rw-r–r-- 1 root root 71 Jun 12 21:08 storage
-rw-r–r-- 1 root root 53 Jun 26 11:14 storage-opkg
-rw------- 1 root root 267 Apr 26 21:45 netmetr
-rw------- 1 root root 176 Jun 6 16:35 netmetr-opkg
-rw------- 1 root root 1793 Oct 11 2017 openvpn
-rw------- 1 root root 13368 Oct 2 2017 openvpn-opkg

I was unable to find documentation how the /etc/config folder is structured and how these files are prioritized.

Usually if you are installing something and config file is already there it name the new config as xxx-opkg.

Only those regular are then applied, xxx-opkg are not used.

1 Like

I try to compare them though, in case there are new options I might be interested in.