modify mac related

This commit is contained in:
Ing
2023-09-28 20:27:23 +08:00
parent 4617a29784
commit 7f590099d9
10 changed files with 1099 additions and 1167 deletions

View File

@@ -24,4 +24,13 @@ if loaderIsConfigured; then
fi
fi
# 23.9.7
deleteConfigKey "notsetmacs" "${USER_CONFIG_FILE}"
for N in $(1 8); do
deleteConfigKey "cmdline.mac${N}" "${USER_CONFIG_FILE}"
deleteConfigKey "original-mac${N}" "${USER_CONFIG_FILE}"
done
writeConfigKey "cmdline.netif_num" "1" "${USER_CONFIG_FILE}"
writeConfigKey "mac1" "001132$(printf '%02x%02x%02x' $((${RANDOM} % 256)) $((${RANDOM} % 256)) $((${RANDOM} % 256)))" "${USER_CONFIG_FILE}"
exit 0