mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Add rng-tools to generate more entropy
This commit is contained in:
parent
b9c990962a
commit
5c42eff2e6
2 changed files with 15 additions and 0 deletions
|
@ -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 \
|
||||
|
|
14
openmptcprouter/files/etc/uci-defaults/2001-omr-rng
Executable file
14
openmptcprouter/files/etc/uci-defaults/2001-omr-rng
Executable 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
|
Loading…
Reference in a new issue