xorg.conf replace conditions fixed
This commit is contained in:
parent
0824959805
commit
5ab8dd3fea
|
@ -257,8 +257,8 @@ 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 *\\"intel\\"\" /etc/X11/xorg.conf`" == "" \
|
||||
|| "`grep 'BusID *"PCI:[0-9]:[0-9]:[0-9]' /etc/X11/xorg.conf{,.nvidia}`" != 2 ]]; then
|
||||
|| "`grep 'Driver *\"intel\"' /etc/X11/xorg.conf`" == "" \
|
||||
|| "`grep 'BusID *"PCI:[0-9]:[0-9]:[0-9]' /etc/X11/xorg.conf{,.nvidia} | wc -l`" != 2 ]]; 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
|
||||
|
|
Loading…
Reference in New Issue