1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +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

@ -41,6 +41,7 @@ MY_DEPENDS := \
luci-proto-3g \
luci-app-mlvpn mlvpn \
omr-update \
rng-tools \
openvpn-openssl \
kmod-rt2800-usb libimobiledevice \
kmod-mt7601u \

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