1 |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_x11.sh,v 1.7 2008-06-17 19:09:58 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_x11.sh,v 1.8 2008-06-22 22:20:28 niro Exp $ |
2 |
# configures the x11 server on the host via mysql db settings |
# configures the x11 server on the host via mysql db settings |
3 |
|
|
4 |
get_x11_settings() |
get_x11_settings() |
183 |
echo 'EndSection' >> ${xfconfig} |
echo 'EndSection' >> ${xfconfig} |
184 |
|
|
185 |
# monitor |
# monitor |
186 |
|
echo '' >> ${xfconfig} |
187 |
if [ -x /sbin/ddcxinfo-knoppix ] && |
if [ -x /sbin/ddcxinfo-knoppix ] && |
188 |
[[ ${ALX_HSYNC} = auto ]] || |
[[ ${ALX_HSYNC} = auto ]] || |
189 |
[[ ${ALX_VREF} = auto ]] |
[[ ${ALX_VREF} = auto ]] |
190 |
then |
then |
191 |
ddcxinfo-knoppix -monitor >> ${xfconfig} |
ddcxinfo-knoppix -monitor >> ${xfconfig} |
192 |
else |
else |
|
echo '' >> ${xfconfig} |
|
193 |
echo "# Monitor: ${ALX_VENDOR} ${ALX_MODEL}" >> ${xfconfig} |
echo "# Monitor: ${ALX_VENDOR} ${ALX_MODEL}" >> ${xfconfig} |
194 |
echo 'Section "Monitor"' >> ${xfconfig} |
echo 'Section "Monitor"' >> ${xfconfig} |
195 |
echo ' Identifier "Monitor0"' >> ${xfconfig} |
echo ' Identifier "Monitor0"' >> ${xfconfig} |