Code: Select all
ping cell phone ip
if cell phone responds
bring lan port 1 up
if cell phone doesn't respond
bring lan port 1 down
wait 60 seconds
Moderator: Moderators
Code: Select all
ping cell phone ip
if cell phone responds
bring lan port 1 up
if cell phone doesn't respond
bring lan port 1 down
wait 60 seconds
Code: Select all
iw dev wlan0 station dump
Code: Select all
iw dev wlan0 station dump
if cell phone MAC address is listed
bring lan port 1 up
if cell phone MAC address is not listed
bring lan port 1 down
wait 60 seconds