124 |
addconfig ' Option "PasswordFile" "/root/.vnc/passwd"' |
addconfig ' Option "PasswordFile" "/root/.vnc/passwd"' |
125 |
fi |
fi |
126 |
addconfig 'EndSection' |
addconfig 'EndSection' |
127 |
|
|
128 |
|
# fixes |
129 |
|
# disable LVDS-1 on zotacs |
130 |
|
if [[ ! -z $(hwinfo --bios --storage | grep -i zotac) ]] |
131 |
|
then |
132 |
|
CONFIG="/etc/X11/xorg.conf.d/30-fix-zotac.conf" |
133 |
|
clearconfig |
134 |
|
addconfig 'Section "Monitor"' |
135 |
|
addconfig ' Identifier "LVDS1"' |
136 |
|
addconfig ' Option "Ignore" "True"' |
137 |
|
addconfig 'EndSection' |
138 |
|
else |
139 |
|
# clear this file |
140 |
|
if [ -f /etc/X11/xorg.conf.d/30-fix-zotac.conf ] |
141 |
|
then |
142 |
|
rm /etc/X11/xorg.conf.d/30-fix-zotac.conf |
143 |
|
fi |
144 |
|
fi |
145 |
} |
} |