Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:guide-developer:mac.address [2019/11/11 19:12] – Several enhancements adrianschmutzlerdocs:guide-developer:mac.address [2021/01/03 21:09] (current) – [Find out about flash locations] . /lib/functions/system.sh sources /lib/functions.sh borromini
Line 57: Line 57:
 or by using mtd_get_mac_binary (based on partition label): or by using mtd_get_mac_binary (based on partition label):
 <code>. /lib/functions/system.sh <code>. /lib/functions/system.sh
-. /lib/functions.sh 
 mtd_get_mac_binary art 0x4</code> mtd_get_mac_binary art 0x4</code>
  
Line 135: Line 134:
  
 <code>aliases { <code>aliases {
-   label-mac-device = &wifi0;+ label-mac-device = &wifi0;
 }</code> }</code>
  
Line 188: Line 187:
  
  
 +==== Using the label MAC address ====
 +
 +When everything is set up correctly, the label MAC address can be accessed with:
 +
 +<code>
 +. /lib/functions.sh
 +. /lib/functions/system.sh
 +label_mac_addr=$(get_mac_label)
 +</code>
 ===== Common MAC address locations ===== ===== Common MAC address locations =====
  
  • Last modified: 2019/11/11 19:12
  • by adrianschmutzler