Changes

no edit summary
Line 128: Line 128:  
are required, and how to run it.
 
are required, and how to run it.
   −
 
+
If you're having trouble finding any page or some of the parameters described here on your device's WebUI, you should turn on '''"Advanced WebUI"''' mode. You can do that by '''clicking''' the '''"Basic"''' button '''under "Mode"''', which is located at the top-right corner of the WebUI.
 
  −
* If you're having trouble finding any page or some of the parameters described here on your device's WebUI, you should turn on '''"Advanced WebUI"''' mode. You can do that by '''clicking''' the '''"Basic"''' button '''under "Mode"''', which is located at the top-right corner of the WebUI.
   
[[File:Networking rutx manual webui basic advanced mode v1.gif|border|class=tlt-border]]
 
[[File:Networking rutx manual webui basic advanced mode v1.gif|border|class=tlt-border]]
      
===Prerequisites===
 
===Prerequisites===
Line 149: Line 146:  
'''Network -> Interfaces''' should look similar to this:
 
'''Network -> Interfaces''' should look similar to this:
   −
[[File:fmenu.png|center]]
+
[[File:fmenu.png|border|center|class=tlt-border]]
    
===Making a Directory and Script===
 
===Making a Directory and Script===
Line 156: Line 153:  
'''1.''' Connect to RUTX14 CLI using PUTTY or WEBUI.
 
'''1.''' Connect to RUTX14 CLI using PUTTY or WEBUI.
   −
'''2.''' Create a new directory for the custom script.
+
'''2.''' Create a new directory for the custom script with the following command: <code><span class="highlight">mkdir /etc/config/scripts</span></code>   
* <code><span class="highlight">mkdir /etc/config/scripts</span></code>   
  −
 
  −
 
  −
[[File:Directory.png|center]]
  −
 
  −
'''3.''' Then create a new .sh file.
  −
*<code><span class="highlight">touch /etc/config/scripts/<filename>.sh</span></code>
      +
[[File:Directory.png|border|center|class=tlt-border]]
   −
[[File:Mobparam.png|center]]
+
'''3.''' Then create a new .sh file: <code><span class="highlight">touch /etc/config/scripts/<filename>.sh</span></code>
    +
[[File:Mobparam.png|border|center|class=tlt-border]]
    
'''4.''' To edit the filename, use <code><span class="highlight">vi <filename>.sh</span></code>. Press '''I'''. To save and exit, '''Press Esc''' then ''':x''' or to exit without saving, '''Press Esc''' then ''':q!'''.
 
'''4.''' To edit the filename, use <code><span class="highlight">vi <filename>.sh</span></code>. Press '''I'''. To save and exit, '''Press Esc''' then ''':x''' or to exit without saving, '''Press Esc''' then ''':q!'''.
   −
 
+
[[File:Vi.png|border|center|class=tlt-border]]
[[File:Vi.png|center]]
  −
 
      
'''5.''' After editing, save then run command <code><span class="highlight">chmod +x <filename></span></code> to make the script executable.
 
'''5.''' After editing, save then run command <code><span class="highlight">chmod +x <filename></span></code> to make the script executable.
   −
 
+
[[File:Chmod3.png|border|center|class=tlt-border]]
[[File:Chmod3.png|center]]
  −
 
  −
===Script===
  −
----
  −
To get a copy of the whole script, please refer to this [https://wiki.teltonika-networks.com/view/File:Script.pdf file].
      
===Testing===
 
===Testing===
 
----
 
----
'''6.''' Run the script.
+
'''6.''' Run the script: <code><span class="highlight">/etc/config/script/<filename></span></code>  or if you are inside script directory just run <code><span class="highlight">./<filename></span></code>
   −
* <code><span class="highlight">/etc/config/script/<filename></span></code>  or if you are inside script directory just run <code><span class="highlight">./<filename></span></code>
+
[[File:Exec.png|border|center|class=tlt-border]]
   −
[[File:Exec.png|center]]
+
'''7.''' If all configurations are correct, all parameters should be displayed in the HTTP Server
    +
[[File:Res.png|border|center|class=tlt-border]]
   −
 
+
===Script===
'''7.''' If all configurations are correct, all parameters should be displayed in the HTTP Server
+
----
 
+
To get a copy of the whole script, please refer to this [https://wiki.teltonika-networks.com/view/File:Script.pdf file].
[[File:Res.png|center]]
 

Navigation menu