mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 01:52:51 +00:00 
			
		
		
		
	ucentral-schema: cig.wf186w: wan_port set to eth0
Reset the ucentral UCI config 'event.config.wan_port' to eth0 for the WF186W board Signed-off-by: Paul White <paul@shasta.cloud>
This commit is contained in:
		
							
								
								
									
										10
									
								
								feeds/ucentral/ucentral-schema/files/etc/uci-defaults/99-ucentral-event
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										10
									
								
								feeds/ucentral/ucentral-schema/files/etc/uci-defaults/99-ucentral-event
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,5 +1,15 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
|  |  | ||||||
|  | . /lib/functions.sh | ||||||
|  |  | ||||||
|  | case "$(board_name)" in | ||||||
|  | 	"cig,wf186w") | ||||||
|  | 		uci del event.config.wan_port | ||||||
|  | 		uci add_list event.config.wan_port=eth0 | ||||||
|  | 		exit 0 | ||||||
|  | 		;; | ||||||
|  | esac | ||||||
|  |  | ||||||
| wan=$(cat /etc/board.json | jsonfilter -e '@.network.wan.device') | wan=$(cat /etc/board.json | jsonfilter -e '@.network.wan.device') | ||||||
| [ -z "$wan" ] && eval $(jsonfilter -i /etc/board.json -e 'wan=@.network.wan.ports.*') | [ -z "$wan" ] && eval $(jsonfilter -i /etc/board.json -e 'wan=@.network.wan.ports.*') | ||||||
| for w in $wan; do | for w in $wan; do | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Paul White
					Paul White