openwrtv3/target/linux/mvebu/base-files/etc
Hauke Mehrtens 0bd5aa89fc mvebu: Migrate uci config to new PCIe path
The name of the PCIe controller node in device tree changed between
kernel 4.9 and kernel 4.14. Migrate the configuration when an update
from kernel 4.9 to 4.14 or back is done to the new name to make
the existing wifi configuration compatible with the new names.

This replaces the "pcie-controller" part with "pcie" on all nodes if the
file exists in sys fs.

This is not done in the uci-defualts, because they are getting executed
to late in the boot process. The kernel module gets loaded before the
uci-defaults scripts are executed. When the mwlwifi driver gets loaded
it will trigger an event via hotplug to detect new devices and as the
paths are not in the uci configuration they will be added again.
When the migration is done before the script will detect that they are
already there.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-02-13 22:30:59 +01:00
..
board.d mvebu: Sort 02_network alphabetically 2017-10-15 00:24:22 +02:00
hotplug.d/ieee80211 mvebu: Migrate uci config to new PCIe path 2018-02-13 22:30:59 +01:00
init.d treewide: use the generic board_name function 2017-07-15 23:13:34 +02:00
uci-defaults treewide: use the generic board_name function 2017-07-15 23:13:34 +02:00
diag.sh treewide: use the generic board_name function 2017-07-15 23:13:34 +02:00