Created
July 12, 2020 23:26
-
-
Save subfission/40ea603fb87ad30962782a5db1ce961d to your computer and use it in GitHub Desktop.
Disable Raspberry Pi Log to Flashcard
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 | |
# Changes logging to log to RAM only. Set for 128M of tempfs. | |
curl -Lo log2ram.tar.gz https://github.com/azlux/log2ram/archive/master.tar.gz | |
tar xf log2ram.tar.gz | |
cd log2ram-master | |
chmod +x install.sh && sudo ./install.sh | |
sed -i 's/^\(SIZE\s*=\s*\).*$/\1128M/' /etc/log2ram.conf | |
cd .. | |
rm -r log2ram-master | |
echo "Reboot now to complete..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment