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)];
}
}