blob: 060d0ef640d54238570ae6a805c8836ec692be0e [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001[ "$(uci -q get network.globals.ula_prefix)" != "auto" ] && exit 0
2
3uci -q batch <<-EOF >/dev/null
4 set network.globals.ula_prefix="$(hexdump -vn 5 -e '"fd" 1/1 "%02x:" 2/2 "%x:"' /dev/urandom):/48"
5 commit network
6EOF
7
8exit 0
9