瀏覽代碼

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.
Matthias Schiffer 9 年之前
父節點
當前提交
1838cee0d6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S20network

+ 1 - 0
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"