From 1838cee0d670ed915454f83c7abfd368ef01a704 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Fri, 1 May 2015 19:57:45 +0200
Subject: [PATCH] gluon-setup-mode: set br-setup MAC address to the primary MAC
 address

This allows to reach the node in setup mode over the same link-local IPv6
address as br-client uses during normal operation.
---
 .../gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S20network  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S20network b/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S20network
index 15f0e2782..ef4cc4ad5 100755
--- a/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S20network
+++ b/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S20network
@@ -26,6 +26,7 @@ prepare_config() {
 
 	uci_add network interface setup
 	uci_set network setup ifname "$(lua -e 'print(require("gluon.sysconfig").setup_ifname)')"
+	uci_set network setup macaddr "$(lua -e 'print(require("gluon.sysconfig").primary_mac)')"
 	uci_set network setup type 'bridge'
 	uci_set network setup proto 'static'
 	uci_set network setup ipaddr "$SETUP_MODE_ADDR"
-- 
GitLab