blob: 51b8f41dae3adffe99b878634b750edfba3db2e4 (
plain)
- #!/bin/sh
- # FIXME: Why won't this work?
- #cfgmaybe=`lspci | perl -n -e 's¡^.* VGA .*:\W(\w*).*¡/etc/X11/XF86Config-4-$1¡i && print if -f'`
- cfgbase="/etc/X11/xorg.conf"
- cfgmaybe="$cfgbase-`lspci | perl -n -e 's¡^.* VGA .*:\W(\w*).*¡$1¡i && print'`"
- if [ -r "$cfgmaybe" ]; then
- echo "$cfgmaybe"
- else
- echo "$cfgbase"
- fi
|