Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #PREY 0.6.2 automated installer for PowerPC
- #This script was desiged to install http://www.preyproject.com
- #Anti-theft software on older PowerPC computers running OSX
- #Download the batch installer from http://preyproject.com/releases/current/prey-0.6.2-mac-batch.mpkg.zip
- # & run this script from same directory batch installer is located in
- # Do not change any file names!
- echo ""
- echo " ## Watch as PREY 0.6.2 gracefully spreads its wings on your old PowerPC!"
- echo " ## $(uname -n) $(uname -s) $(uname -r) $(uname -m) $(uname -p)"
- echo " ## $(date)"
- echo ""
- if [ $(find /usr/share/curl -name old.curl-ca-bundle.crt |wc -l) -eq 0 ]; then
- echo " ## It appears your certificates are probably outdated!";
- echo " ## They're required in order to establish a connection.";
- echo " ## I will take the liberty of updateing them for you.";
- echo " ## Only good will come from this :)";
- echo ""
- curl http://curl.haxx.se/ca/cacert.pem -o /usr/share/curl/new_cacert.pem;
- echo ""
- mv /usr/share/curl/curl-ca-bundle.crt /usr/share/curl/old.curl-ca-bundle.crt;
- echo ""
- mv /usr/share/curl/new_cacert.pem /usr/share/curl/curl-ca-bundle.crt;
- fi
- read -p " Please provide your API Key:" INPUT_API_KEY
- while [[ -z "$INPUT_API_KEY" ]]; do
- echo ""
- echo " API Key can't be blank, you can find it at:"
- echo " https://panel.preyproject.com/profile"
- echo ""
- read -s -p " Please provide your API Key:" INPUT_API_KEY;
- echo ""
- done
- export API_KEY="$INPUT_API_KEY"
- installer -pkg prey-0.6.2-mac-batch.mpkg -target / && /usr/share/prey/prey.sh -c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement