330 |
export ALL_CDROMS="$(get_hwinfo cdrom)" |
export ALL_CDROMS="$(get_hwinfo cdrom)" |
331 |
} |
} |
332 |
|
|
|
hdd_size_below_256mb() |
|
|
{ |
|
|
local hdd="$1" |
|
|
local size |
|
|
local retval |
|
|
[[ -z ${hdd} ]] && dialog_die "Error: get_hdd_size() no \$hdd given!" |
|
|
|
|
|
size=$(fdisk -l ${hdd} | grep "Disk.*${hdd}" | sed 's:.*,\ \(.*\)\ byte.*:\1:') |
|
|
if [[ ${size} -le 257000000 ]] |
|
|
then |
|
|
retval="0" |
|
|
else |
|
|
retval="1" |
|
|
fi |
|
|
|
|
|
return "${retval}" |
|
|
} |
|
|
|
|
333 |
setup_hdd_partitions_auto() |
setup_hdd_partitions_auto() |
334 |
{ |
{ |
335 |
ROOTHDD="${HDD}1" |
ROOTHDD="${HDD}1" |