mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-30 21:44:27 -04:00 
			
		
		
		
	This replaces deprecated backticks by more versatile $(...) syntax. This does not touch lib/upgrade/nand.sh, as there replacement is not trivial. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
		
			
				
	
	
		
			15 lines
		
	
	
		
			205 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			205 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| CFG=$1
 | |
| 
 | |
| [ -n "$CFG" ] || CFG=/etc/board.json
 | |
| 
 | |
| [ -d "/etc/board.d/" -a ! -s "$CFG" ] && {
 | |
| 	for a in $(ls /etc/board.d/*); do
 | |
| 		[ -x $a ] || continue;
 | |
| 		$(. $a)
 | |
| 	done
 | |
| }
 | |
| 
 | |
| [ -s "$CFG" ] || return 1
 |