Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #VALIDITY user hostpot tanpa user manager by Master Cespun
- #dalam user manager terdapat "validity" untuk expired user hotspot, bagaimana bila tanpa user manager ?
- #contoh validity 1 hari, artinya 1 hari setelah user login pertama kali :
- #pertama, bikin ip hotspot "User Profile" dengan nama, misal "validity-1hari"
- #lalu masukkan "On Login" script berikut :
- {
- :local usernya $user;
- :if ([/system script find name=$usernya]="") do={
- /system script add name=$usernya source="/ip hotspot user disable [find name=$usernya]"
- }
- :if ([/system schedule find name=$usernya]="") do={
- /system schedule add name=$usernya interval=1d on-event=$usernya
- }
- }
- - buat user dengan nama misal "test" degan "User Profile" yang dibuat tadi yaitu "validity-1hari"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement