mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Add vnstat to ucitrack
This commit is contained in:
		
							parent
							
								
									2a9574565b
								
							
						
					
					
						commit
						17cd449caa
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -10,4 +10,11 @@ if [ -n "$wan" ]; then
 | 
			
		|||
	EOF
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
uci -q batch <<-EOF >/dev/null
 | 
			
		||||
    delete ucitrack.@vnstat[-1]
 | 
			
		||||
    add ucitrack vnstat
 | 
			
		||||
    set ucitrack.@vnstat[-1].init=vnstat
 | 
			
		||||
    commit ucitrack
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
exit 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue