Changes

568 bytes removed ,  23:28, 12 April 2022
no edit summary
Line 1: Line 1: −
==Introduction==
     −
'''User Scripts''' is a service in RUT routers that provides the user with the possibility to create custom '''shell scripts''' that run at the end of router's boot process.
  −
  −
This article will provide some examples on the usage of User Scripts. Although it must be noted that one should be at least be partially familiar with the syntax and basic principles of shell scripts beforehand as this guide will not provide a tutorial on shell scripts themselves.
      
#!/bin/ash
 
#!/bin/ash
Line 12: Line 8:  
   echo "$HOST did not respond; trying to restart VPN"
 
   echo "$HOST did not respond; trying to restart VPN"
 
   /usr/sbin/ipsec restart
 
   /usr/sbin/ipsec restart
  −
==Example 2: filtering SMS messages==
  −
  −
  −
  −
[[File:Configuration examples user scripts 1.png]]
 
Anonymous user

Navigation menu