From 33ea007ab9c9a6630d817644959cb1ca7ce1e1dd Mon Sep 17 00:00:00 2001 From: Felix Endres Date: Tue, 21 Mar 2006 16:33:01 +0000 Subject: Fix: dhclientuser für Ubuntu Neue Basepasswd Screenresolutionermittlung git-svn-id: http://svn.openslx.org/svn/openslx/ld4@109 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/bin/hwautocfg | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'initrd/initrd-stuff/bin') 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# \ -- cgit v1.2.3-55-g7522