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")
			
			
This commit is contained in:
		
							parent
							
								
									b3edfd292a
								
							
						
					
					
						commit
						3c2593b684
					
				| @ -85,7 +85,7 @@ local function is_disabled(name) | |||||||
| 	if uci:get('wireless', name) then | 	if uci:get('wireless', name) then | ||||||
| 		return uci:get_bool('wireless', name, 'disabled') | 		return uci:get_bool('wireless', name, 'disabled') | ||||||
| 	else | 	else | ||||||
| 		return false | 		return nil | ||||||
| 	end | 	end | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user