add SN for DS224+, DS1522+ Thanks @OrpheeGT

This commit is contained in:
Ing
2023-09-28 22:48:06 +08:00
parent 5a482f386f
commit aceb96e66d
3 changed files with 7 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ 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}"
deleteConfigKey "cmdline.netif_num" "${USER_CONFIG_FILE}"
writeConfigKey "mac1" "001132$(printf '%02x%02x%02x' $((${RANDOM} % 256)) $((${RANDOM} % 256)) $((${RANDOM} % 256)))" "${USER_CONFIG_FILE}"
exit 0