From 356866c481cf74e87b9025ebbfdef0995674dca3 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Thu, 30 Jul 2020 17:25:20 +0200 Subject: target: replace remaining occurrences of ifconfig with ip ifconfig is effectively deprecated for quite some time now. Let's replace the remaining occurrences for our target setup by the corresponding ip commands now. Note that this does not touch ar71xx, as it will be dropped anyway, and changing it would only make backports harder. Signed-off-by: Adrian Schmutzler --- target/linux/apm821xx/base-files/lib/preinit/05_set_iface_mac_apm821xx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/apm821xx/base-files') diff --git a/target/linux/apm821xx/base-files/lib/preinit/05_set_iface_mac_apm821xx b/target/linux/apm821xx/base-files/lib/preinit/05_set_iface_mac_apm821xx index 1f8c1c29fb..5f92c01931 100644 --- a/target/linux/apm821xx/base-files/lib/preinit/05_set_iface_mac_apm821xx +++ b/target/linux/apm821xx/base-files/lib/preinit/05_set_iface_mac_apm821xx @@ -5,7 +5,7 @@ preinit_set_mac_address() { meraki,mr24|\ meraki,mx60) mac_lan=$(mtd_get_mac_binary_ubi board-config 0x66) - [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan" + [ -n "$mac_lan" ] && ip link set eth0 address "$mac_lan" ;; esac } -- cgit v1.2.3