Magellan Linux

Diff of /alx-src/branches/alxconf-060/bin/update-alx.sh

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

revision 2028 by niro, Mon May 9 14:35:21 2011 UTC revision 2029 by niro, Wed May 11 09:08:08 2011 UTC
# Line 77  SERVER_SHARE="${SMB_UPDATE_HOST}" Line 77  SERVER_SHARE="${SMB_UPDATE_HOST}"
77  USER="${SMB_UPDATE_USER}"  USER="${SMB_UPDATE_USER}"
78  PASS="${SMB_UPDATE_PASS}"  PASS="${SMB_UPDATE_PASS}"
79    
80    # disable colors
81    export NOCOLORS=true
82    
83  # set some proper traps  # set some proper traps
84  trap "trap_exit" SIGINT SIGQUIT  trap "trap_exit" SIGINT SIGQUIT
85    
# Line 114  mage update > /dev/null || die "mage upd Line 117  mage update > /dev/null || die "mage upd
117  # to be safe, mount boot (kernel updates !)  # to be safe, mount boot (kernel updates !)
118  mount /boot &> /dev/null  mount /boot &> /dev/null
119    
120  # first update mage  # first update mage if an update is available
121  mage install mage || die "install mage"  mage pretend mage &> /dev/null
122    if [[ $? = 1 ]]
123    then
124     mage install mage || die "install mage"
125    fi
126    
127  # then clean forcefully all packages that does not fit the profile  # then clean forcefully all packages that does not fit the profile
128  if [ -f /etc/mage-profile/forced-uninstall ]  if [ -f /etc/mage-profile/forced-uninstall ]

Legend:
Removed from v.2028  
changed lines
  Added in v.2029