busybox/base-files forged packages

This commit is contained in:
Conor Horan-Kates
2016-11-18 15:49:40 -08:00
parent 72a27eb586
commit 38465f7280
494 changed files with 12080 additions and 2 deletions

View File

@ -0,0 +1,15 @@
#!/bin/sh
[ "$(uci -q get network.globals.ula_prefix)" != "auto" ] && exit 0
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 -q batch <<-EOF >/dev/null
set network.globals.ula_prefix=fd$r1:$r2:$r3::/48
commit network
EOF
exit 0