mirror of
https://github.com/RROrg/rr.git
synced 2026-02-19 16:52:51 +08:00
modify mac related
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user