Magellan Linux

Diff of /trunk/installer-simple/bin/installer.sh.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2475 by niro, Wed Jan 8 08:59:52 2014 UTC revision 2476 by niro, Wed Jan 8 09:15:14 2014 UTC
# Line 330  run_hardware_detection_disks() Line 330  run_hardware_detection_disks()
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"

Legend:
Removed from v.2475  
changed lines
  Added in v.2476