1 2 3 4 5 6 7 8
#!/bin/sh uci -q show system.@rngd[0] || { uci add system rngd uci set system.@rngd[0].enabled=0 uci set system.@rngd[0].device=/dev/urandom uci commit }