Developing lightweight computation at the DSG edge

Commit ad7cbb90 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Do not remove MAC address settings



Some devices (e.g., ath79 MikroTik) have their MAC addresses configured
via /etc/config/network in "Xan_ethN_dev" device sections (e.g.,
lan_eth0_dev"). When removing old network settings, to not remove MAC
address settings.

Fixes #485.
Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent 1ff5c11a
......@@ -34,7 +34,7 @@ qmp_set_mss_clamping_and_masq() {
# Prepare config files
qmp_configure_prepare_network() {
local toRemove="$(uci show network | egrep "network.(lan|wan|mesh_).*=(interface|device)" | cut -d. -f2 | cut -d= -f1)"
local toRemove="$(uci show network | egrep "network.(lan|wan|mesh_).*=(interface|device)" | cut -d. -f2 | cut -d= -f1 | egrep -v ".?an_eth.?*_dev")"
qmp_log "Removing current network configuration"
for i in $toRemove; do
uci del network.$i
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment