mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 18:38:10 +00:00 
			
		
		
		
	ucentral-schema: update to latest HEAD
55b8272 add support for overriding country codes Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -4,10 +4,10 @@ PKG_NAME:=ucentral-schema | ||||
| PKG_RELEASE:=1 | ||||
|  | ||||
| PKG_SOURCE_URL=https://github.com/Telecominfraproject/wlan-ucentral-schema.git | ||||
| PKG_MIRROR_HASH:=16cac9b483aa0ab14b2f1d5ab450307b8357baf351c18695046078c9f52661bf | ||||
| PKG_MIRROR_HASH:=7f11e36e1cb10104bcde0ba0e288f2487fb894a6471605d4dee1460b5be379e0 | ||||
| PKG_SOURCE_PROTO:=git | ||||
| PKG_SOURCE_DATE:=2022-05-29 | ||||
| PKG_SOURCE_VERSION:=b27df6432c75b05f1721a8afde36f3181362e55b | ||||
| PKG_SOURCE_VERSION:=55b8272c9cc4500f813f5f1cccdcbb14725b595b | ||||
|  | ||||
| PKG_MAINTAINER:=John Crispin <john@phrozen.org> | ||||
| PKG_LICENSE:=BSD-3-Clause | ||||
|   | ||||
							
								
								
									
										22
									
								
								feeds/ucentral/ucentral-schema/files/etc/board.d/04-regdm
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										22
									
								
								feeds/ucentral/ucentral-schema/files/etc/board.d/04-regdm
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| . /lib/functions/uci-defaults.sh | ||||
|  | ||||
| board_config_update | ||||
|  | ||||
| board=$(board_name) | ||||
|  | ||||
| case "$board" in | ||||
| cig,wf188n|\ | ||||
| cig,wf194c4|\ | ||||
| cig,wf194c|\ | ||||
| cig,wf610d|\ | ||||
| cig,wf808|\ | ||||
| cig,wf196) | ||||
| 	ucidef_set_wifi_country 'US' | ||||
| 	;; | ||||
| esac | ||||
|  | ||||
| board_config_flush | ||||
|  | ||||
| exit 0 | ||||
| @@ -0,0 +1,30 @@ | ||||
| From aa0404504cff8bcdac40d8e9b3ec708d2079d705 Mon Sep 17 00:00:00 2001 | ||||
| From: John Crispin <john@phrozen.org> | ||||
| Date: Thu, 22 Sep 2022 15:12:20 +0200 | ||||
| Subject: [PATCH] base-files: add ucidef_set_wifi_country | ||||
|  | ||||
| Signed-off-by: John Crispin <john@phrozen.org> | ||||
| --- | ||||
|  package/base-files/files/lib/functions/uci-defaults.sh | 6 ++++++ | ||||
|  1 file changed, 6 insertions(+) | ||||
|  | ||||
| diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh | ||||
| index ff3433a0a2..3bc8e6bb1c 100644 | ||||
| --- a/package/base-files/files/lib/functions/uci-defaults.sh | ||||
| +++ b/package/base-files/files/lib/functions/uci-defaults.sh | ||||
| @@ -627,6 +627,12 @@ ucidef_set_wifi_scanning() { | ||||
|  	json_select .. | ||||
|  } | ||||
|   | ||||
| +ucidef_set_wifi_country() { | ||||
| +	json_select_object wifi | ||||
| +		json_add_string country $1  | ||||
| +	json_select .. | ||||
| +} | ||||
| + | ||||
|  ucidef_set_ntpserver() { | ||||
|  	local server | ||||
|   | ||||
| --  | ||||
| 2.25.1 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin