summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/bin/hwautocfg
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/initrd-stuff/bin/hwautocfg')
-rwxr-xr-xinitramfs/initrd-stuff/bin/hwautocfg10
1 files changed, 6 insertions, 4 deletions
diff --git a/initramfs/initrd-stuff/bin/hwautocfg b/initramfs/initrd-stuff/bin/hwautocfg
index ae591673..88076038 100755
--- a/initramfs/initrd-stuff/bin/hwautocfg
+++ b/initramfs/initrd-stuff/bin/hwautocfg
@@ -83,6 +83,12 @@ local DRI='\tGroup\t\t"video"\n
# displayvars may overwrite the above settings
displayvars
+# check for special X driver (fglrx, nvidia, ...) and enable tvout if variable
+# tvout is not "no"
+checkgraphix
+
+# check if hardware definition variables are set and overwrite autodetected
+# values
if [ -n "$hw_graphic" ] ; then
DRV=${hw_graphic% *}
CDP=${hw_graphic##* }
@@ -126,10 +132,6 @@ if [ -z "$SCR_MODES" ] ; then #error "$hcfg_res" nonfatal
fi
monmanual=yes
-# check for special X driver (fglrx, nvidia, ...) and enable tvout if variable
-# tvout is not "no"
-checkgraphix
-
# finally write config file
echo -e "#\n# autogenerated X hardware configuration by $0\n# \
OpenSLX.ORG Project <openslx-users@openslx.org>, $date" >$xfc