Skip to content

Instantly share code, notes, and snippets.

@mike-bailey
Created November 24, 2014 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mike-bailey/5d7810ec3f16557e2ee7 to your computer and use it in GitHub Desktop.
Save mike-bailey/5d7810ec3f16557e2ee7 to your computer and use it in GitHub Desktop.
In hindsight, I probably don't even need to cat then pipe to grep. But I didn't think it'd be fatal...?
cat /etc/lightdm/lightdm.conf
if [ $?==0 ]; then
cat /etc/lightdm/lightdm.conf | grep -v allow-guest > /etc/lightdm/lightdm.conf
echo "allow-guest=false" >> /etc/lightdm/lightdm.conf
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment