Guest User

Untitled

a guest
Nov 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. me=`basename $0`
  4.  
  5. if [ $EUID -ne 0 ]; then
  6. echo "This script must be run as root." 1>&2
  7. echo "Execute from a command prompt:" 1>&2
  8. echo "sudo ./$me" 1>&2
  9. if [ "./$me" != "$0" ]; then
  10. echo " or " 1>&2
  11. echo "sudo $0" 1>&2
  12. fi
  13. echo 1>&2
  14. exit 1
  15. fi
  16.  
  17. if launchctl list | grep com.labtechsoftware.LTSvc; then
  18. launchctl stop com.labtechsoftware.LTSvc &>nul
  19. launchctl remove com.labtechsoftware.LTSvc &>nul
  20. launchctl stop com.labtechsoftware.ltechagent &>nul
  21. launchctl remove com.labtechsoftware.ltechagent &>nul
  22. launchctl unload /Library/LaunchDaemons/com.labtechsoftware.LTSvc.plist &>nul
  23. fi
  24.  
  25. if launchctl list | grep com.labtechsoftware.LTTray; then
  26. launchctl stop com.labtechsoftware.LTTray &>nul
  27. launchctl remove com.labtechsoftware.LTTray &>nul
  28. launchctl unload /Library/LaunchAgents/com.labtechsoftware.LTTray.plist &>nul
  29. launchctl unload /Library/LaunchDaemons/com.labtechsoftware.LTTray.plist &>nul
  30. fi
  31.  
  32. if launchctl list | grep com.labtechsoftware.LTUpdate; then
  33. launchctl stop com.labtechsoftware.LTUpdate &>nul
  34. launchctl remove com.labtechsoftware.LTUpdate &>nul
  35. launchctl unload /Library/LaunchDaemons/com.labtechsoftware.LTUpdate.plist &>nul
  36. fi
  37.  
  38. if launchctl list | grep com.labtechsoftware.LTSvc; then
  39. launchctl stop com.labtechsoftware.LTSvc &>nul
  40. launchctl remove com.labtechsoftware.LTSvc &>nul
  41. launchctl unload /Library/LaunchDaemons/com.labtechsoftware.LTSvc.plist &>nul
  42. fi
  43.  
  44. rm -rf /usr/LTSvc/ &>nul
  45. rm -rf /usr/local/ltechagent/ &>nul
  46. rm -rf /Library/LaunchDaemons/com.labtechsoftware.LTSvc.plist &>nul
  47. rm -rf /Library/LaunchAgents/com.labtechsoftware.LTTray.plist &>nul
  48. rm -rf /Library/LaunchDaemons/com.labtechsoftware.LTTray.plist &>nul
  49. rm -rf /Library/LaunchDaemons/com.labtechsoftware.LTUpdate.plist &>nul
Add Comment
Please, Sign In to add comment