+
+ XSERVER="Xorg"
+ XCONFIG='/etc/X11/xorg.conf'
+ KEYBOARD="Driver \"kbd\"
+ # Option \"XkbRules\" \"xfree86\"
+ Option \"XkbRules\" \"xorg\"
+ Option \"XkbModel\" \"pc105\"
+ Option \"XkbLayout\" \"${XKEYBOARD},us\"
+ # Option \"XkbVariant\" \"nodeadkeys\""
+
+ # check for font path
+ if [ -d /usr/share/fonts/X11 ] ; then
+ XFONTS=" FontPath \"/usr/share/fonts/X11/misc\"
+ FontPath \"/usr/share/fonts/X11/100dpi/:unscaled\"
+ FontPath \"/usr/share/fonts/X11/75dpi/:unscaled\"
+ FontPath \"/usr/share/fonts/X11/Type1\"
+ FontPath \"/usr/share/fonts/X11/100dpi\"
+ FontPath \"/usr/share/fonts/X11/75dpi\""
+ fi
+ # /usr/X11R6/lib/X11/fonts exists nearly everywhere, assume
+ # /usr/X11R6/lib/X11/fonts as valid font path only if fonts.dir
+ # exists for "misc"
+ if [ -r /usr/X11R6/lib/X11/fonts/misc/fonts.dir ] ; then
+ XFONTS="$XFONTS
+ FontPath \"/usr/X11R6/lib/X11/fonts/Type1\"
+ FontPath \"/usr/X11R6/lib/X11/fonts/misc:unscaled\"
+ FontPath \"/usr/X11R6/lib/X11/fonts/misc\"
+ FontPath \"/usr/X11R6/lib/X11/fonts/75dpi:unscaled\"
+ FontPath \"/usr/X11R6/lib/X11/fonts/75dpi\"
+ FontPath \"/usr/X11R6/lib/X11/fonts/100dpi:unscaled\"
+ FontPath \"/usr/X11R6/lib/X11/fonts/100dpi\""
+ fi
+# }}}
+
+# make sure we don't leave any temp files {{{
+bailout() {
+ rm -f "$HWINFO_TMP" "$MONITORINFO" "$MOUSEINFO"
+ [ -n "$1" ] && EXIT="$1" || EXIT="1"
+ print "$bg[black]$fg[red]${bold_color}Exiting...${reset_color}">&2
+ exit "$EXIT"
+}
+
+trap bailout 1 2 3 15