gluon-core: fix handling of 'disabled' site.conf attributes for mesh interfaces
Because is_disabled() was always returning true or false, the first_non_nil() would never actually check the default setting from site.conf. This was broken since v2017.1. Fixes:6cf03bab37("treewide: replace normal uses of luci.model.uci with simple-uci to reduce LuCI dependencies") (cherry picked from commit3c2593b684)
This commit is contained in:
		
							parent
							
								
									41d13742f6
								
							
						
					
					
						commit
						86b0a60d8d
					
				@ -85,7 +85,7 @@ local function is_disabled(name)
 | 
			
		||||
	if uci:get('wireless', name) then
 | 
			
		||||
		return uci:get_bool('wireless', name, 'disabled')
 | 
			
		||||
	else
 | 
			
		||||
		return false
 | 
			
		||||
		return nil
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user