Skip to content

Instantly share code, notes, and snippets.

@DocCyblade
Last active August 31, 2015 21:54
Show Gist options
  • Save DocCyblade/71aadeac504ec778da98 to your computer and use it in GitHub Desktop.
Save DocCyblade/71aadeac504ec778da98 to your computer and use it in GitHub Desktop.
Script to reset your TKLDev tool chain
#!/bin/bash
# Script to reset your TKLDev tool chain
# This will force a re-download of all TKLDev stuff
# that is downloaded on firstbook
#
# We also clear the proxy cache as well
# Clear turnkey dir / They will be re-created later
echo "Clear turnkey directories"
rm -Rf /turnkey/fab/bootstraps
rm -Rf /turnkey/fab/cdroots
rm -Rf /turnkey/fab/common
echo "--------------------------"
# clear cache
echo "Current cache status"
du -h /var/cache/polipo
echo "--------------------------"
echo "Clear cache"
service polipo stop
rm -Rf /var/cache/polipo/*
service polipo start
echo "Cache status now"
du -h /var/cache/polipo
echo "--------------------------"
# Re-run setup
echo "Re-run tkldev-setup"
/usr/local/sbin/tkldev-setup
# All done!
echo "--------------------------"
echo "All done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment