Created
November 24, 2014 06:27
-
-
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...?
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
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