mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	Remove ipq40xx customization
This commit is contained in:
		
							parent
							
								
									46d5683e1d
								
							
						
					
					
						commit
						a93d9cba68
					
				
					 83 changed files with 0 additions and 13379 deletions
				
			
		|  | @ -1,23 +0,0 @@ | |||
| set_state() { | ||||
| 	local label="$1" | ||||
| 	local disable | ||||
| 
 | ||||
| 	[ -e "/sys/class/gpio/${label}_power/value" ] || return | ||||
| 
 | ||||
| 	config_get disable ${label} disable | ||||
| 
 | ||||
| 	[ "${disable}" -eq 1 ] && \ | ||||
| 		/sbin/mctl -s -m "${label}" -c || \ | ||||
| 		/sbin/mctl -p -m "${label}" -c | ||||
| } | ||||
| 
 | ||||
| do_power_modem() { | ||||
| 	[ -f /etc/board.json ] || return | ||||
| 
 | ||||
| 	[ -z "$(uci -q get system.modem.disable)" ] && /sbin/mctl -p -a -c || { | ||||
| 		config_load system | ||||
| 		config_foreach set_state mctl | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| boot_hook_add preinit_main do_power_modem | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue