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 2780 by niro, Fri Aug 26 11:54:23 2011 UTC
# Line 18  NEW_ALX_DHCP_PROG="/sbin/udhcpc" Line 18  NEW_ALX_DHCP_PROG="/sbin/udhcpc"
18  NEW_ALX_DHCP_START="-T 10 -t 5 -n -i"  NEW_ALX_DHCP_START="-T 10 -t 5 -n -i"
19  NEW_ALX_DHCP_STOP=""  NEW_ALX_DHCP_STOP=""
20  NEW_MIN_DISK_SPACE="85000"  NEW_MIN_DISK_SPACE="85000"
21  NEW_ALX_PLUGINS="/etc/alxconfig-ng/plugins"  NEW_ALX_PLUGINS="/usr/lib/alxconfig-ng/plugins"
22    NEW_ALX_FUNCTIONS="/usr/lib/alxconfig-ng/functions"
23    
24  # fake mage upgrade to prevent annoying error messages  # fake mage upgrade to prevent annoying error messages
25  if [[ ! -x /usr/sbin/mageupgrade ]]  if [[ ! -x /usr/sbin/mageupgrade ]]
# Line 79  updategrub2() Line 80  updategrub2()
80   install -m0644 /lib/grub/*/video.lst /boot/grub/video.lst   install -m0644 /lib/grub/*/video.lst /boot/grub/video.lst
81   fi   fi
82    
  # 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  
   
83   # update grub.cfg   # update grub.cfg
84   grub-mkconfig -o /boot/grub/grub.cfg   grub-mkconfig -o /boot/grub/grub.cfg
85    
# Line 113  updateconfig RSYNC MIRRORS MAGE_DISTRIBU Line 97  updateconfig RSYNC MIRRORS MAGE_DISTRIBU
97    
98  # fix config.rc  # fix config.rc
99  CONFIG="${CONFIGRC}"  CONFIG="${CONFIGRC}"
100  updateconfig ALX_NETWORKING ALX_DHCP_PROG ALX_DHCP_START ALX_DHCP_STOP MIN_DISK_SPACE ALX_PLUGINS  updateconfig ALX_NETWORKING ALX_DHCP_PROG ALX_DHCP_START ALX_DHCP_STOP MIN_DISK_SPACE ALX_PLUGINS ALX_FUNCTIONS
101    
102  # fix profile  # fix profile
103  if [[ $(readlink /etc/mage-profile) != */${MAGEPROFILE} ]]  if [[ $(readlink /etc/mage-profile) != */${MAGEPROFILE} ]]
# Line 127  if [[ ! -e /dev/root ]] Line 111  if [[ ! -e /dev/root ]]
111  then  then
112   echo "fixing missing /dev/root symlink ..."   echo "fixing missing /dev/root symlink ..."
113   rootdev=$(basename $(mount | grep ' / ' | cut -d' ' -f1))   rootdev=$(basename $(mount | grep ' / ' | cut -d' ' -f1))
114   [[ ! -e /dev/${rootdev} ]] && ln -snf ${rootdev} /dev/root   [[ -e /dev/${rootdev} ]] && ln -snf ${rootdev} /dev/root
115  fi  fi
116    
117  # update mage3 -> mage4  # update mage3 -> mage4
# Line 315  then Line 299  then
299   [[ -f ${tmp} ]] && rm -f ${tmp}   [[ -f ${tmp} ]] && rm -f ${tmp}
300   # start cron daemon in background   # start cron daemon in background
301   crond -b -S   crond -b -S
302    
303     rm -f /.dist-upgrade
304  fi  fi
305    
306  exit 0  exit 0

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