1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add rng-tools to generate more entropy

This commit is contained in:
Ycarus 2018-07-01 08:19:04 +02:00
parent b9c990962a
commit 5c42eff2e6
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#!/bin/sh
uci -q show system.@rngd[0] || {
uci add system rngd
uci set system.@rngd[0].device=/dev/urandom
uci commit
}
uci -q batch <<-EOF >/dev/null
set system.@rngd[0].enabled=1
commit system
EOF
exit 0