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, 5 insertions, 5 deletions
diff --git a/initramfs/initrd-stuff/bin/hwautocfg b/initramfs/initrd-stuff/bin/hwautocfg
index 88076038..75ce2381 100755
--- a/initramfs/initrd-stuff/bin/hwautocfg
+++ b/initramfs/initrd-stuff/bin/hwautocfg
@@ -3,7 +3,7 @@
# universal (distro independent) hardware autoconfiguration script for
# OpenSLX linux diskless clients, using hwconfig from knoppix as base tool
#
-# Dirk von Suchodoletz <dvs@OpenSLX.com>, 07-11-2006
+# Dirk von Suchodoletz <dvs@OpenSLX.com>, 20-11-2006
#
# (c) 2003 - 2006 - RZ Universitaet Freiburg
# (c) 2006 - OpenSLX.org Project
@@ -83,10 +83,6 @@ 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
@@ -132,6 +128,10 @@ 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"
+[ -z "$hw_graphic" ] && checkgraphix
+
# finally write config file
echo -e "#\n# autogenerated X hardware configuration by $0\n# \
OpenSLX.ORG Project <openslx-users@openslx.org>, $date" >$xfc