Skip to content

Instantly share code, notes, and snippets.

@subfission
Created July 12, 2020 23:26
Show Gist options
  • Save subfission/40ea603fb87ad30962782a5db1ce961d to your computer and use it in GitHub Desktop.
Save subfission/40ea603fb87ad30962782a5db1ce961d to your computer and use it in GitHub Desktop.
Disable Raspberry Pi Log to Flashcard
#!/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