diff options
Diffstat (limited to 'initrd/initrd-stuff/bin/hwautocfg')
| -rwxr-xr-x | initrd/initrd-stuff/bin/hwautocfg | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/initrd/initrd-stuff/bin/hwautocfg b/initrd/initrd-stuff/bin/hwautocfg index 9ce5cd75..835124a0 100755 --- a/initrd/initrd-stuff/bin/hwautocfg +++ b/initrd/initrd-stuff/bin/hwautocfg @@ -149,11 +149,12 @@ fi monmanual=yes -# compute max resolution -for res in 640x400 640x480 800x600 1024x768 1280x1024 1400x1050 1600x1200 - do MODES="\"$res\" \"lcd$res\" $MODES" - [ "$res" = "$MR" ] && break -done +## compute max resolution +#for res in 640x400 640x480 800x600 1024x768 1280x1024 1400x1050 1600x1200 +# do MODES="\"$res\" \"lcd$res\" $MODES" +# [ "$res" = "$MR" ] && break +#done +MODES=`screenres | sed -n '/Recommended Screen Modes:/s/[^"]*\(.*\)/\1/p'` # finally write config file echo -e "#\n# autogenerated X hardware configuration by $0\n# \ |
