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 2728 by niro, Thu Aug 11 12:08:18 2011 UTC revision 2734 by niro, Thu Aug 11 14:51:25 2011 UTC
# Line 20  NEW_ALX_DHCP_STOP="" Line 20  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="/etc/alxconfig-ng/plugins"
22    
23    # fake mage upgrade to prevent annoying error messages
24    if [[ ! -x /usr/sbin/mageupgrade ]]
25    then
26     mageupgrade() { true; }; export -f mageupgrade
27    fi
28    
29  read_value()  read_value()
30  {  {
31   local file=$1   local file=$1
# Line 99  then Line 105  then
105   ln -snf /usr/mage/profiles/${MAGEPROFILE} /etc/mage-profile   ln -snf /usr/mage/profiles/${MAGEPROFILE} /etc/mage-profile
106  fi  fi
107    
108    # fix missing /dev/root device
109    if [[ ! -e /dev/root ]]
110    then
111     echo "fixing missing /dev/root symlink ..."
112     rootdev=$(basename $(mount | grep ' / ' | cut -d' ' -f1))
113     [[ ! -e /dev/${rootdev} ]] && ln -snf ${rootdev} /dev/root
114    fi
115    
116  # update mage3 -> mage4  # update mage3 -> mage4
117  if [[ -z $(magequery -n mage) ]]  if [[ -z $(magequery -n mage) ]]
118  then  then
# Line 166  if [[ -z $(magequery -n ${BASESYSTEM}) ] Line 180  if [[ -z $(magequery -n ${BASESYSTEM}) ]
180  then  then
181   # first keep some important files   # first keep some important files
182    
  # fix missing /dev/root device  
  if [[ ! -e /dev/root ]]  
  then  
  rootdev=$(basename $(mount | grep ' / ' | cut -d' ' -f1))  
  [[ ! -e /dev/${rootdev} ]] && ln -snf ${rootdev} /dev/root  
  fi  
   
183   # export bootstrap to not start any services   # export bootstrap to not start any services
184   export MAGE_BOOTSTRAP=true   export MAGE_BOOTSTRAP=true
185   mage install ${BASESYSTEM}   mage install ${BASESYSTEM}

Legend:
Removed from v.2728  
changed lines
  Added in v.2734