gluon-l3roamd: let l3roam0 interface and routes be set up by l3roamd
This commit is contained in:
		
							parent
							
								
									e724fec260
								
							
						
					
					
						commit
						f94a410738
					
				| @ -1,19 +1,6 @@ | ||||
| #!/usr/bin/lua | ||||
| 
 | ||||
| local uci = require('simple-uci').cursor() | ||||
| local site = require 'gluon.site' | ||||
| 
 | ||||
| uci:delete('network', 'l3roam') | ||||
| uci:section('network', 'interface', 'l3roam', { | ||||
| 	ifname = 'l3roam0', | ||||
| 	proto = 'none', | ||||
| }) | ||||
| 
 | ||||
| uci:delete('network', 'l3roamd_client') | ||||
| uci:section('network', 'route6', 'l3roamd_client', { | ||||
| 	interface = 'l3roam', | ||||
| 	target = site.prefix6(), | ||||
| 	gateway = '::', | ||||
| }) | ||||
| 
 | ||||
| uci:save('network') | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user