LED color wifi security alarm

Hi all,
I am not good in scripting, but my first try was to be informed if unknown MAC address connect to my wifi.
There is for sure easier way how to write the same script, so if someone can make it simplier, I would appreciate. My biggest trouble was that I was not able to install wdiff, so I need to sort MAC addresses in file as diff shows difference even in case rows are in different order.



file /tmp/my_devicelist has to look like this as all my clients can both SSIDs (for 2.4 and 5G too). So each MAC needs to be there twice.
Station xx:xx:xx:xx:xx:xx (on wlan0)
Station xx:xx:xx:xx:xx:xx (on wlan1)
Station xx:xx:xx:xx:xx:yy (on wlan0)
Station xx:xx:xx:xx:xx:yy (on wlan1)

1 Like