Skip to content

Commit

Permalink
rockchip: don't set static ula_prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 committed Dec 1, 2023
1 parent b24e8ea commit 1a97eb4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions target/linux/rockchip/armv8/base-files/root/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1a97eb4

Please sign in to comment.