Created
November 25, 2018 11:51
-
-
Save DJFliX/4bb3a42d6896671b1c95c796c3c9ad5d to your computer and use it in GitHub Desktop.
TP-Link tpPLC utility findings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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