base-files: use get_mac_binary() in mtd_get_mac_binary_ubi()
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 5 Sep 2019 11:29:37 +0000 (13:29 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Sun, 29 Sep 2019 16:41:06 +0000 (12:41 -0400)
commit0b73335b02ae8ce2f77f11fc6b1f2959679e6c3e
treeb8a77c0da088ea479de8381a4d9649f79152aa94
parent6ad9d740e0ce619d1bd5e8c56691deff6c84f2e8
base-files: use get_mac_binary() in mtd_get_mac_binary_ubi()

The actual retrieval of the MAC address in mtd_get_mac_binary_ubi()
is the same as in get_mac_binary(). Thus, use the latter function
in the former to reduce duplicate code.

This will also allow to benefit from the enhanced path check there
and bring mtd_get_mac_binary_ubi() more in line with the similar
mtd_get_mac_binary().

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 45600124fcbd14ece6e289cb59b318ea44c598fe)
package/base-files/files/lib/functions/system.sh