List option paths [usb radio firstboot]

I build firmware using imagebuilder for my rasperrypi4.
I copy /etc/config/ into files/etc/config / so I don't have to set my config each time.
The problem I am having appears to be related to the "path" of the USB device changing.
Is there a command to list what "option path" should be?

/etc/config# cat wireless

config wifi-device 'radio1'
        option type 'mac80211'
        option channel '36'
        option hwmode '11a'
        option path 'scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-1/2-1:1.0'
        option htmode 'VHT80'

Is there a way to install all the man pages?


From here something like this:

path="$(readlink -f /sys/class/ieee80211/${dev}/device)"
1 Like

Is there a script to generate the UCI commands (only changed from default) to duplicate a running system?

Unfortunately not.
But LuCI has a button to display pending changes as UCI commands.
This can help if you set up OpenWrt from scratch with web interface.