mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Doesn't disable RA after update
This commit is contained in:
		
							parent
							
								
									4b2e9ecae2
								
							
						
					
					
						commit
						18b858776a
					
				
					 1 changed files with 9 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -1,11 +1,13 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
uci -q batch <<-EOF >/dev/null
 | 
			
		||||
	set dhcp.lan.ra_default=0
 | 
			
		||||
	set dhcp.lan.dhcpv6=disabled
 | 
			
		||||
	set dhcp.lan.force=1
 | 
			
		||||
	commit dhcp
 | 
			
		||||
EOF
 | 
			
		||||
rm -f /tmp/luci-indexcache
 | 
			
		||||
if [ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "0" ]; then
 | 
			
		||||
	uci -q batch <<-EOF >/dev/null
 | 
			
		||||
		set dhcp.lan.ra_default=0
 | 
			
		||||
		set dhcp.lan.dhcpv6=disabled
 | 
			
		||||
		set dhcp.lan.force=1
 | 
			
		||||
		commit dhcp
 | 
			
		||||
	EOF
 | 
			
		||||
	rm -f /tmp/luci-indexcache
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
exit 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue