Changes

1,329 bytes added ,  14:21, 8 September 2022
m
no edit summary
Line 61: Line 61:     
==Configuration Examples==
 
==Configuration Examples==
 +
 +
===Setting Mobile Data Limit===
 +
----
 +
In this example, we will set mobile data limit on SIM1 interface. We will achieve this by creating new Task group in RMS Task Manager and using Command as a task type.
 +
 +
*Create a new task group by clicking '<nowiki/>'''ADD NEW TASK GROUP'''' button inside Task Manager configuration window 2. Define Task group name, select Command as a task type on the first task and insert the following text into Command field
 +
'''''uci set quota_limit.mob'''''<nowiki/>'''''1s1a1.enabled='1''''''
 +
*Click '<nowiki/>'''ADD ADDITIONAL TASK'''' button at<nowiki/> the bottom of the window to add a second task, make settings identical to the first task and insert the following command into the Command field (this will set the mobile limit to 2GB or 2048MB):
 +
'''''uci set quota_limit.mob'''''<nowiki/>'''''1s1a1.data_limit='2048''''''
 +
*Add another task with identical setti<nowiki/>ngs and insert the following text into the Command field (this will set the period of the data limit to 1 day:
 +
'''''uci set quota_limit.mob'''''<nowiki/>'''''1s1a1.period='1''''''
 +
*Add another task with identical setti<nowiki/>ngs and insert the following text into the Command field (this will commit the changes and restart the mobile interface):
 +
'''''uci commit && ifdown mo'''''<nowiki/>'''''b1s1a1 && ifup mob1s1a1'''''

Navigation menu