Skip to content

Commit

Permalink
models: infos on getting mac address
Browse files Browse the repository at this point in the history
  • Loading branch information
Noki committed Aug 18, 2024
1 parent 2ed3594 commit 5c3fc73
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions group_vars/model_dlink_covr_x1860_a1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dsa_ports:
- internet
- ethernet

# Mac address can be read with the following command:
# cat /dev/mtdblock$(grep -w 'config2' /proc/mtd | sed -n 's/^mtd\([0-9]\+\):.*/\1/p') | grep -o 'factory_mac=[^ ]*' | cut -d= -f2
requires_mac_override: true

wireless_devices:
Expand Down
2 changes: 2 additions & 0 deletions group_vars/model_mikrotik_sxtsq_2_lite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ model_nice: SXTsq Lite2

int_port: eth0

# Mac address can be read with the following command:
# cat /sys/firmware/mikrotik/hard_config/mac_base
requires_mac_override: true

wireless_devices:
Expand Down
2 changes: 2 additions & 0 deletions group_vars/model_mikrotik_sxtsq_5_ac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ model__packages__to_merge:
dsa_ports:
- lan

# Mac address can be read with the following command:
# cat /sys/firmware/mikrotik/hard_config/mac_base
requires_mac_override: true

wireless_devices:
Expand Down
2 changes: 2 additions & 0 deletions group_vars/model_netgear_wax202.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ dsa_ports:
- lan2
- lan3

# Mac address can be read with the following command:
# cat /dev/mtdblock$(grep -w 'Config' /proc/mtd | sed -n 's/^mtd\([0-9]\+\):.*/\1/p') | grep -o 'mac=[^ ]*' | cut -d= -f2
requires_mac_override: true

wireless_devices:
Expand Down

0 comments on commit 5c3fc73

Please sign in to comment.