i need help with removing user from hotspot when connected to pppoe!!!!!
Posted: Fri Mar 17, 2017 3:08 pm
please help me with this:
i need script that remove user from hotspot when connected to pppoe
i have been tryin all day with no success
i need script that remove user from hotspot when connected to pppoe

i have been tryin all day with no success
Code: Select all
{:local i;
:set i [ :len [/ip hotspot active find] ];
:local uname;
:foreach i in=[/ip hotspot active find] do={
:set uname [/ip hotspot active get $i user];
:ip hotspot active remove [find user=($uname)];
}
}