Magellan Linux

Diff of /alx-src/trunk/alxconfig-ng/bin/update-alx.sh

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

revision 1800 by niro, Thu Apr 14 19:29:35 2011 UTC revision 1997 by niro, Mon May 9 14:35:21 2011 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/bin/update-alx.sh,v 1.4 2006-02-20 14:49:30 niro Exp $  # $Id$
3    
4  die()  die()
5  {  {
# Line 47  mount_server() Line 47  mount_server()
47   fi   fi
48    
49   sleep 3   sleep 3
50    
51   return "${ret}"   return "${ret}"
52  }  }
53    
# Line 115  mage update > /dev/null || die "mage upd Line 115  mage update > /dev/null || die "mage upd
115  mount /boot &> /dev/null  mount /boot &> /dev/null
116    
117  # first update mage  # first update mage
118  mage install mage-alx || die "install mage"  mage install mage || die "install mage"
119    
120  # then clean forcefully all packages that does not fit the profile  # then clean forcefully all packages that does not fit the profile
121  if [ -f /etc/mage-profile/forced-uninstall ]  if [ -f /etc/mage-profile/forced-uninstall ]
# Line 124  then Line 124  then
124  fi  fi
125    
126  # update the whole system  # update the whole system
127  mageupgrade --no-calc --autoclean --autoanswer || die "system upgrade" #--debug  mage upgrade || die "system upgrade"
128    
129  # umount BUILDDIR  # umount BUILDDIR
130  if is_mounted ${BUILDDIR}; then  if is_mounted ${BUILDDIR}; then
# Line 144  fi Line 144  fi
144  if is_mounted ${TEMPDIR}; then  if is_mounted ${TEMPDIR}; then
145   umount_server   umount_server
146  fi  fi
   
 ### check mage version for 0.>4.x-rxx  
 #/sbin/mage version | egrep v0.[4-9].[0-9]-r??  
   

Legend:
Removed from v.1800  
changed lines
  Added in v.1997