Skip to content

Instantly share code, notes, and snippets.

@DJFliX
Created November 25, 2018 11:51
Show Gist options
  • Save DJFliX/4bb3a42d6896671b1c95c796c3c9ad5d to your computer and use it in GitHub Desktop.
Save DJFliX/4bb3a42d6896671b1c95c796c3c9ad5d to your computer and use it in GitHub Desktop.
TP-Link tpPLC utility findings
#!/usr/bin/env bash
# Kill old daemon if it exists
if [ $(sudo ps -Ax | grep plcmw | wc -l) -gt 1 ]; then
#sudo killall plcmw;
echo "Re-using existing plcmw daemon"
else
sudo nohup /Applications/tpPLC.app/Contents/Resources/plcmw/plcmw > plcmw_daemon.log 2>&1 &
echo "Waiting for daemon to wake"
sleep 1
fi;
# Request network info
echo "Requesting network info"
sudo /Applications/tpPLC.app/Contents/Resources/plcmw/plcmw rescan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment