mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			357 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			357 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
if [ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "0" ]; then
 | 
						|
	uci -q batch <<-EOF >/dev/null
 | 
						|
		delete dhcp.lan.ra_default
 | 
						|
		delete dhcp.lan.dhcpv6
 | 
						|
		delete dhcp.lan.ra
 | 
						|
		set dhcp.lan.force=1
 | 
						|
		commit dhcp
 | 
						|
	EOF
 | 
						|
	rm -f /tmp/luci-indexcache
 | 
						|
fi
 | 
						|
uci -q batch <<-EOF >/dev/null
 | 
						|
	set dhcp.@dnsmasq[0].quietdhcp='1'
 | 
						|
	commit dhcp
 | 
						|
EOF
 | 
						|
 | 
						|
exit 0
 |