xorg.conf replace condition

This commit is contained in:
Kolan Sh 2012-05-06 22:09:09 +04:00
parent d6444f186c
commit a0f7459f18
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ case "$DISTRIB_ID" in
esac
echo "Creating backups of original xorg.conf.* files and replacing with snail's versions..."
if [[ ! -f /etc/X11/xorg.conf.nvidia.snail && ! -f /etc/X11/xorg.conf.intel.snail && "`grep \"Driver *\\"nvidia\\"\" /etc/X11/xorg.conf`" == "" ]]; then
if [[ ! -f /etc/X11/xorg.conf.nvidia.snail && ! -f /etc/X11/xorg.conf.intel.snail || "`grep \"Driver *\\"nvidia\\"\" /etc/X11/xorg.conf`" != "" ]]; then
[[ -f /etc/X11/xorg.conf && ! -f /etc/X11/xorg.conf.snail-bkp ]] && mv /etc/X11/xorg.conf /etc/X11/xorg.conf.snail-bkp
[[ -f /etc/X11/xorg.conf.intel && ! -f /etc/X11/xorg.conf.intel.snail-bkp ]] && mv /etc/X11/xorg.conf.intel /etc/X11/xorg.conf.intel.snail-bkp
[[ -f /etc/X11/xorg.conf.nvidia && ! -f /etc/X11/xorg.conf.nvidia.snail-bkp ]] && mv /etc/X11/xorg.conf.nvidia /etc/X11/xorg.conf.nvidia.snail-bkp