Magellan Linux

Diff of /mage/branches/alx-0_6_0/profiles/alx-060/forced-uninstall

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

revision 2730 by niro, Thu Aug 11 14:28:46 2011 UTC revision 2741 by niro, Thu Aug 11 16:41:47 2011 UTC
# Line 79  updategrub2() Line 79  updategrub2()
79   install -m0644 /lib/grub/*/video.lst /boot/grub/video.lst   install -m0644 /lib/grub/*/video.lst /boot/grub/video.lst
80   fi   fi
81    
  # check for special hardware  
  if [[ -x $(which hwinfo) ]]  
  then  
  # zotac devices  
  if [[ ! -z $(hwinfo --bios --storage | grep -i zotac) ]]  
  then  
  grubopts="rootdelay=8"  
  echo "Special device 'ZOTAC' detected!"  
  fi  
  fi  
   
  # fix grubconfig for special devices  
  if [[ -n ${grubopts} ]]  
  then  
  sed -i "s:^\(export GRUB_CMDLINE_LINUX=\).*:\1\"${grubopts}\":" /etc/conf.d/grub  
  fi  
   
82   # update grub.cfg   # update grub.cfg
83   grub-mkconfig -o /boot/grub/grub.cfg   grub-mkconfig -o /boot/grub/grub.cfg
84    
# Line 127  if [[ ! -e /dev/root ]] Line 110  if [[ ! -e /dev/root ]]
110  then  then
111   echo "fixing missing /dev/root symlink ..."   echo "fixing missing /dev/root symlink ..."
112   rootdev=$(basename $(mount | grep ' / ' | cut -d' ' -f1))   rootdev=$(basename $(mount | grep ' / ' | cut -d' ' -f1))
113   [[ ! -e /dev/${rootdev} ]] && ln -snf ${rootdev} /dev/root   [[ -e /dev/${rootdev} ]] && ln -snf ${rootdev} /dev/root
114  fi  fi
115    
116  # update mage3 -> mage4  # update mage3 -> mage4

Legend:
Removed from v.2730  
changed lines
  Added in v.2741