Skip to content

Instantly share code, notes, and snippets.

@turingmachine
Created August 31, 2009 14:07
Show Gist options
  • Save turingmachine/178474 to your computer and use it in GitHub Desktop.
Save turingmachine/178474 to your computer and use it in GitHub Desktop.
# Generate initial file
TEMPFILE=$(mktemp)
LANG=C Xorg -configure -novtswitch :1 > ${TEMPFILE} 2>&1
if [ $? -ne 0 ]; then
logger -t LTSP "Xorg failed to autodetect this card"
exit 1;
fi
INPUT_FILE=$(cat ${TEMPFILE} | grep "Your xorg.conf file is " | tr -d '\n' | cut -d' ' -f5)
rm ${TEMPFILE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment