aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/functions/system.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/lib/functions/system.sh')
-rw-r--r--package/base-files/files/lib/functions/system.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/system.sh b/package/base-files/files/lib/functions/system.sh
index 80e417182a..0ac2912014 100644
--- a/package/base-files/files/lib/functions/system.sh
+++ b/package/base-files/files/lib/functions/system.sh
@@ -135,6 +135,15 @@ mtd_get_part_size() {
done < /proc/mtd
}
+mmc_get_mac_binary() {
+ local part_name="$1"
+ local offset="$2"
+ local part
+
+ part=$(find_mmc_part "$part_name")
+ get_mac_binary "$part" "$offset"
+}
+
macaddr_add() {
local mac=$1
local val=$2