Magellan Linux

Diff of /trunk/installer-simple/functions/hwdetection.sh

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

revision 2466 by niro, Tue Jan 7 20:47:16 2014 UTC revision 2476 by niro, Wed Jan 8 09:15:14 2014 UTC
# Line 349  iface_has_link() Line 349  iface_has_link()
349   [[ $(cat ${interface}/carrier) = 1 ]] || return 1   [[ $(cat ${interface}/carrier) = 1 ]] || return 1
350  }  }
351    
352    hdd_size_below_256mb()
353    {
354     local hdd="$1"
355     local size
356     local retval
357     [[ -z ${hdd} ]] && dialog_die "Error: get_hdd_size() no \$hdd given!"
358    
359     size=$(fdisk -l ${hdd} | grep "Disk.*${hdd}" | sed 's:.*,\ \(.*\)\ byte.*:\1:')
360     if [[ ${size} -le 257000000 ]]
361     then
362     retval="0"
363     else
364     retval="1"
365     fi
366    
367     return "${retval}"
368    }
369    
370  chrooted()  chrooted()
371  {  {
372   local cmd="$@"   local cmd="$@"

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