comgt: add delay option for 3g proto
All protos for wwan (ncm,qmi,mbim) do have a delay option.
To standardize that add also the missing delay option to the 3g proto.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 313444a79e)
			
			
This commit is contained in:
		 Florian Eckert
					Florian Eckert
				
			
				
					committed by
					
						 Jo-Philipp Wich
						Jo-Philipp Wich
					
				
			
			
				
	
			
			
			 Jo-Philipp Wich
						Jo-Philipp Wich
					
				
			
						parent
						
							ec49bb64e7
						
					
				
				
					commit
					937a17de19
				
			| @@ -17,6 +17,7 @@ proto_3g_init_config() { | |||||||
| 	proto_config_add_string "apn" | 	proto_config_add_string "apn" | ||||||
| 	proto_config_add_string "service" | 	proto_config_add_string "service" | ||||||
| 	proto_config_add_string "pincode" | 	proto_config_add_string "pincode" | ||||||
|  | 	proto_config_add_string "delay" | ||||||
| 	proto_config_add_string "dialnumber" | 	proto_config_add_string "dialnumber" | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -29,6 +30,7 @@ proto_3g_setup() { | |||||||
| 	json_get_var service service | 	json_get_var service service | ||||||
| 	json_get_var pincode pincode | 	json_get_var pincode pincode | ||||||
| 	json_get_var dialnumber dialnumber | 	json_get_var dialnumber dialnumber | ||||||
|  | 	json_get_var delay delay | ||||||
|  |  | ||||||
| 	[ -n "$dat_device" ] && device=$dat_device | 	[ -n "$dat_device" ] && device=$dat_device | ||||||
|  |  | ||||||
| @@ -38,6 +40,8 @@ proto_3g_setup() { | |||||||
| 		return 1 | 		return 1 | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	[ -n "$delay" ] && sleep "$delay" | ||||||
|  |  | ||||||
| 	case "$service" in | 	case "$service" in | ||||||
| 		cdma|evdo) | 		cdma|evdo) | ||||||
| 			chat="/etc/chatscripts/evdo.chat" | 			chat="/etc/chatscripts/evdo.chat" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user