Author: hawk Date: Thu Nov 24 22:52:45 2005 New Revision: 6565 Modified: bootdisk/trunk/batch-installer/ui/ui-main Log: - updated dest_devices selection dialog
Modified: bootdisk/trunk/batch-installer/ui/ui-main ============================================================================== --- bootdisk/trunk/batch-installer/ui/ui-main (original) +++ bootdisk/trunk/batch-installer/ui/ui-main Thu Nov 24 22:52:45 2005 @@ -211,14 +211,30 @@ item5="/dev/hda /dev/hdb" item6="/dev/hda /dev/hdc" dml <<EOF - <br>`nls "Enter or choose set of destination disks"` + <br>`nls "Please specify space delimited list of destination disks."` + <br>`nls "If you have only one disk, you may select appropriate from the list."` + <br>`nls "Example: /dev/hda /dev/hdc"` <br> <meta title="$(nls "Set of destination disks")"> <menu id=res_menu res=1> <item id=ui_custom>${custom_text} - `ide_disk_items` - <item id="$item5">$item5: `nls "Example entry for two IDE disks"` - <item id="$item6">$item6: `nls "Example entry for two IDE disks"` + $( + avail_dest_devices=`awk ' + { + if (match($4, /hd[a-h]$/) || + match($4, /sd[a-h]$/) || + match($4, /rd\/c[0-9]d[0-9]*$/) || + match($4, /ida\/c[0-9]d[0-9]*$/) || + match($4, /cciss\/c[0-9]d[0-9]*$/) || + match($4, /ataraid\/d[0-9]*$/) || + match($4, /i2o\/hd[a-h]*$/)) + print "/dev/" $4 + } + ' /proc/partitions` + for dev in $avail_dest_devices; do + echo "<item id=$dev>$dev $(disk_name $dev)" + done + ) </menu> $@ EOF _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit