Last active
August 31, 2015 21:54
-
-
Save DocCyblade/71aadeac504ec778da98 to your computer and use it in GitHub Desktop.
Script to reset your TKLDev tool chain
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
#!/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