This changes makes it possible to store custom settings in individual files inside the directory /etc/sysctl.d/. Signed-off-by: Stefan Tomanek <stefan.tomanek+openwrt@wertarbyte.de> SVN-Revision: 46239
		
			
				
	
	
		
			10 lines
		
	
	
		
			236 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			236 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
if [ "$ACTION" = add ]; then
 | 
						|
	for CONF in /etc/sysctl.conf /etc/sysctl.d/*.conf; do
 | 
						|
		[ ! -f "$CONF" ] && continue;
 | 
						|
		sed -ne "/^[[:space:]]*net\..*\.$DEVICENAME\./p" "$CONF" | \
 | 
						|
			sysctl -e -p - | logger -t sysctl
 | 
						|
	done
 | 
						|
fi
 |