 e934a129f0
			
		
	
	e934a129f0
	
	
	
		
			
			Instead of board_detect generating the config as a side effect, let config_generate call board_detect as needed. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
		
			
				
	
	
		
			11 lines
		
	
	
		
			180 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			180 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| [ -d "/etc/board.d/" -a ! -f "/etc/board.json" ] && {
 | |
| 	for a in `ls /etc/board.d/*`; do
 | |
| 		[ -x $a ] || continue;
 | |
| 		$(. $a)
 | |
| 	done
 | |
| }
 | |
| 
 | |
| [ -f "/etc/board.json" ] || return 1
 |