Magellan Linux

Diff of /trunk/magellan-initscripts/etc/rc.d/init.d/hwdetect

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 10 by niro, Mon Dec 13 22:52:07 2004 UTC revision 11 by niro, Mon Dec 13 23:30:33 2004 UTC
# Line 28  write_x11_config() { Line 28  write_x11_config() {
28   xfconfig=/etc/X11/XF86Config   xfconfig=/etc/X11/XF86Config
29   ;;   ;;
30   *)   *)
31   echo "Unkown xserver. aborting."   echo "    Unkown xserver. aborting."
32   exit 1   exit 1
33   ;;   ;;
34   esac   esac
# Line 242  write_x11_config() { Line 242  write_x11_config() {
242    
243   #monitor   #monitor
244   echo '' >> ${xfconfig}   echo '' >> ${xfconfig}
245   echo 'Section "Monitor"' >> ${xfconfig}  # echo 'Section "Monitor"' >> ${xfconfig}
246   echo '    Identifier  "mon0"' >> ${xfconfig}  # echo '    Identifier  "mon0"' >> ${xfconfig}
247   echo '    HorizSync   28 - 96' >> ${xfconfig}  # echo '    HorizSync   28 - 96' >> ${xfconfig}
248   echo '    VertRefresh 50-60' >> ${xfconfig}  # echo '    VertRefresh 50-60' >> ${xfconfig}
249   echo '    Option      "DPMS"' >> ${xfconfig}  # echo '    Option      "DPMS"' >> ${xfconfig}
250   echo 'EndSection' >> ${xfconfig}  # echo 'EndSection' >> ${xfconfig}
251    
252     #test; using knoppix ddcxinfo
253     if [ -x "/sbin/ddcxinfo-knoppix" ]
254     then
255     ddcxinfo-knoppix -monitor >> ${xfconfig}
256     else
257     #some conservative default values
258     echo 'Section "Monitor"' >> ${xfconfig}
259     echo '    Identifier  "mon0"' >> ${xfconfig}
260     echo '    HorizSync   28 - 96' >> ${xfconfig}
261     echo '    VertRefresh 50-60' >> ${xfconfig}
262     echo '    Option      "DPMS"' >> ${xfconfig}
263     echo 'EndSection' >> ${xfconfig}
264     fi
265    
266   #vga   #vga
267   #to be safe   #to be safe
# Line 263  write_x11_config() { Line 276  write_x11_config() {
276    
277   if [ -n "${XMODULE}" ]   if [ -n "${XMODULE}" ]
278   then   then
279     # vmware module has some probs with fb consoles
280     # very dirty glyphes appear, so we use vesa instead
281     [ "${XMODULE}" = "vmware" ] && XMODULE="vesa"
282   echo -e ${COLOREDSTAR}"Video: ${XDESC}"   echo -e ${COLOREDSTAR}"Video: ${XDESC}"
283   echo -e ${COLOREDSTAR}"Video module: ${XMODULE}"   echo -e ${COLOREDSTAR}"Video module: ${XMODULE}"
284   echo "    Driver      \"${XMODULE}\"" >> ${xfconfig}   echo "    Driver      \"${XMODULE}\"" >> ${xfconfig}
# Line 302  write_x11_config() { Line 318  write_x11_config() {
318   echo 'Section "Screen"' >> ${xfconfig}   echo 'Section "Screen"' >> ${xfconfig}
319   echo '    Identifier  "Screen 1"' >> ${xfconfig}   echo '    Identifier  "Screen 1"' >> ${xfconfig}
320   echo '    Device      "vga0"' >> ${xfconfig}   echo '    Device      "vga0"' >> ${xfconfig}
321   echo '    Monitor     "mon0"' >> ${xfconfig}   #echo '    Monitor     "mon0"' >> ${xfconfig}
322     echo '    Monitor     "Monitor0"' >> ${xfconfig}
323   echo '    DefaultDepth 16' >> ${xfconfig}   echo '    DefaultDepth 16' >> ${xfconfig}
324   echo '    Subsection "Display"' >> ${xfconfig}   echo '    Subsection "Display"' >> ${xfconfig}
325   echo '        Depth       8' >> ${xfconfig}   echo '        Depth       8' >> ${xfconfig}

Legend:
Removed from v.10  
changed lines
  Added in v.11