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.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/system.sh b/package/base-files/files/lib/functions/system.sh
index be7efe4e2e..c4dc3cc3a9 100644
--- a/package/base-files/files/lib/functions/system.sh
+++ b/package/base-files/files/lib/functions/system.sh
@@ -144,6 +144,13 @@ macaddr_add() {
echo $oui:$nic
}
+macaddr_geteui() {
+ local mac=$1
+ local sep=$2
+
+ echo ${mac:9:2}$sep${mac:12:2}$sep${mac:15:2}
+}
+
macaddr_setbit_la() {
local mac=$1