amlogic: ethmactool support alternate secure-monitor node

This commit is contained in:
chewitt 2020-11-11 01:44:18 +00:00 committed by Christian Hewitt
parent e0471c56cb
commit 4f9a7bcdbb

View File

@ -39,7 +39,10 @@ aml_from_efuse_gxl() {
}
aml_from_cpu_sn() {
if [ -e /sys/bus/platform/devices/firmware\:secure-monitor/serial ] ; then
if [ -e /sys/bus/platform/devices/secure-monitor/serial ]; then
MAC=$(cat /sys/bus/platform/devices/secure-monitor/serial 2>/dev/null | cut -b-12)
fixup_self_mac
elif [ -e /sys/bus/platform/devices/firmware\:secure-monitor/serial ]; then
MAC=$(cat /sys/bus/platform/devices/firmware\:secure-monitor/serial 2>/dev/null | cut -b-12)
fixup_self_mac
fi