mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			No EOL
		
	
	
		
			362 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			No EOL
		
	
	
		
			362 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/sh
 | |
| uci -q batch <<-EOF >/dev/null
 | |
| 	delete ucitrack.@omr-quota[-1]
 | |
| 	add ucitrack omr-quota
 | |
| 	set ucitrack.@omr-quota[-1].init="omr-quota"
 | |
| 	commit ucitrack
 | |
| EOF
 | |
| if [ "$(uci -q get ucitrack.@network[-1].affects | grep omr-quota)" = "" ]; then
 | |
| 	uci -q batch <<-EOF >/dev/null
 | |
| 		add_list ucitrack.@network[-1].affects="omr-quota"
 | |
| 		commit ucitrack
 | |
| 	EOF
 | |
| fi
 | |
| exit 0 |