mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			200 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			200 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh
 | 
						|
. /usr/share/libubox/jshn.sh
 | 
						|
DEVICE="$1"
 | 
						|
 | 
						|
[ -n "$DEVICE" ] || {
 | 
						|
	echo "Usage: $0 <device>"
 | 
						|
	exit 1
 | 
						|
}
 | 
						|
 | 
						|
json_init
 | 
						|
json_add_string name "$DEVICE"
 | 
						|
ubus call network.device status "$(json_dump)"
 |