Magellan Linux

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

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

revision 2429 by niro, Tue Jan 7 14:13:11 2014 UTC revision 2430 by niro, Tue Jan 7 14:14:23 2014 UTC
# Line 281  run_hardware_detection() Line 281  run_hardware_detection()
281    
282   hwinfo="$(hwinfo --bios --storage --pci --gfxcard --sys)"   hwinfo="$(hwinfo --bios --storage --pci --gfxcard --sys)"
283    
284   # check for special devices/clients:   ## check for special devices/clients:
285   # if zotac a zotac and the disk is a removeable device, then add rootdelay to kernelcmd   ## if zotac a zotac and the disk is a removeable device, then add rootdelay to kernelcmd
286   local removable=0   #local removable=0
287   if [[ ! -z $(echo "${hwinfo}" | grep -i zotac) ]]   #if [[ ! -z $(echo "${hwinfo}" | grep -i zotac) ]]
288   then   #then
289   for i in /sys/block/[hs]d*/removable   #for i in /sys/block/[hs]d*/removable
290   do   #do
291   if [[ $(< ${i}) = 1 ]]   #if [[ $(< ${i}) = 1 ]]
292   then   #then
293   removable=1   #removable=1
294   fi   #fi
295   done   #done
296    
297   # only add this for grub legacy, grub2 detect these settings on its own   ## only add this for grub legacy, grub2 detect these settings on its own
298   export GRUBLEGACYOPTS="rootdelay=8"   #export GRUBLEGACYOPTS="rootdelay=8"
299   # there are to zotac types in the wild, nvidia based gfx and intel   ## there are to zotac types in the wild, nvidia based gfx and intel
300   if [[ ! -z $(echo "${hwinfo}" | grep -i nouveau) ]]   #if [[ ! -z $(echo "${hwinfo}" | grep -i nouveau) ]]
301   then   #then
302   export SPECIALDEVICE="zotac_nvidia"   #export SPECIALDEVICE="zotac_nvidia"
303   else   #else
304   export SPECIALDEVICE="zotac_intel"   #export SPECIALDEVICE="zotac_intel"
305   fi   #fi
306   fi   #fi
307    
308   # check for special devices/clients:   # check for special devices/clients:
309   # if a rangee and disk ist smaller then 256mb move partion one block further ahead   # if a rangee and disk ist smaller then 256mb move partion one block further ahead

Legend:
Removed from v.2429  
changed lines
  Added in v.2430