1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 11:01:50 +00:00
openmptcprouter-feeds/openmptcprouter/files/etc/uci-defaults/2001-omr-rng
2018-07-01 08:19:04 +02:00

14 lines
235 B
Bash
Executable file

#!/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