projects
/
openwrt
/
staging
/
pepe2k.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
base-files: reduce IPv6 ULA prefix generation to a single call
[openwrt/staging/pepe2k.git]
/
package
/
base-files
/
files
/
etc
/
uci-defaults
/
12_network-generate-ula
1
[ "$(uci -q get network.globals.ula_prefix)" != "auto" ] && exit 0
2
3
uci -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
6
EOF
7
8
exit 0
9