diff --git a/target/linux/rockchip/armv8/base-files/root/setup.sh b/target/linux/rockchip/armv8/base-files/root/setup.sh index 6e39d7c4b40630..4fd66653207a25 100755 --- a/target/linux/rockchip/armv8/base-files/root/setup.sh +++ b/target/linux/rockchip/armv8/base-files/root/setup.sh @@ -69,8 +69,12 @@ function init_firewall() { } function init_network() { - uci set network.globals.ula_prefix='fd00:ab:cd::/48' - uci commit network + local r1 r2 r3 + r1=$(dd if=/dev/urandom bs=1 count=1 | hexdump -e '1/1 "%02x"') + r2=$(dd if=/dev/urandom bs=2 count=1 | hexdump -e '2/1 "%02x"') + r3=$(dd if=/dev/urandom bs=2 count=1 | hexdump -e '2/1 "%02x"') + uci set network.globals.ula_prefix="fd$r1:$r2:$r3::/48" + uci commit network } function init_nft-qos() {