Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: curlinstall
Fetching contributors…

Cannot retrieve contributors at this time

executable file 41 lines (34 sloc) 1.265 kb
# Make a temporary directory so that original files are not changed
mkdir tmp_install_unlock
cd tmp_install_unlock
echo "Downloading necessary files..."
curl -o name.ridgewell.unlock.plist
curl -o
echo "Done downloading!"
echo ""
echo "--------------------------"
echo "What is the UUID of the drive?"
read uuid
echo "And the passphrase used to encrypt it?"
read password
echo ""
echo "--------------------------"
echo "Installing..."
# Preform some sed jiggery to change required values
sed "s/UUID/$uuid/" >
sed "s/PASSWORD/$password/" >
# Move them to the LaunchDaemons dir, and make sure they have the right permissions
sudo mv ./* /Library/LaunchDaemons/
sudo chown root:wheel /Library/LaunchDaemons/name.ridgewell.unlock.plist
sudo chown root:wheel /Library/LaunchDaemons/
sudo chmod 644 /Library/LaunchDaemons/name.ridgewell.unlock.plist
sudo chmod 755 /Library/LaunchDaemons/
# Cleanup
cd ..
rm -r tmp_install_unlock
echo ""
echo "--------------------------"
echo "Installed!"
Jump to Line
Something went wrong with that request. Please try again.