mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Send kernel information on sysupgrade
This commit is contained in:
		
							parent
							
								
									c02c9f20d0
								
							
						
					
					
						commit
						d582c9a9d7
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -64,6 +64,7 @@ function setup() {
 | 
			
		|||
    ubus_call("rpc-sys", "packagelist", {}, "packages");
 | 
			
		||||
    ubus_call("system", "board", {}, "release");
 | 
			
		||||
    ubus_call("system", "board", {}, "board_name");
 | 
			
		||||
    ubus_call("system", "board", {}, "kernel");
 | 
			
		||||
    ubus_call("system", "info", {}, "memory");
 | 
			
		||||
    ubus_call("openmptcprouter", "getrootfs", {}, "format");
 | 
			
		||||
    ubus_call("openmptcprouter", "getefi", {}, "efi_enabled");
 | 
			
		||||
| 
						 | 
				
			
			@ -231,6 +232,7 @@ function upgrade_request() {
 | 
			
		|||
    // add board info to let server determine profile
 | 
			
		||||
    request_dict.target = data.release.target
 | 
			
		||||
    request_dict.profile = data.board_name
 | 
			
		||||
    request_dict.kernel = data.kernel
 | 
			
		||||
    request_dict.rootfs = data.format
 | 
			
		||||
    request_dict.efi = data.efi_enabled
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue