Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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