mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			235 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			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
 |