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 2180 by niro, Wed May 18 22:55:40 2011 UTC revision 2181 by niro, Tue Jun 7 12:32:27 2011 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Id$  # $Id$
3    
4    # setup exit trap for reboot
5    trap_exit()
6    {
7     if [[ -f /.dist-upgrade ]]
8     then
9     rm -f /.dist-upgrade
10     # force a reboot at this point here
11     ( sleep 3 && reboot -f & ); exit 0
12     fi
13    }
14    trap "trap_exit" EXIT
15    
16    # get a suitable environment
17    source /etc/profile
18    
19  MAGERC="/etc/mage.rc"  MAGERC="/etc/mage.rc"
20  MAGEPROFILE="alx-060"  MAGEPROFILE="alx-060"
21  NEW_MAGE_DISTRIBUTION="unstable"  NEW_MAGE_DISTRIBUTION="unstable"
# Line 151  for i in $(magequery -i | grep -- -alx | Line 166  for i in $(magequery -i | grep -- -alx |
166  do  do
167   # excludes   # excludes
168   case ${i} in   case ${i} in
169     alxconfig-ng) continue ;;
170     alxinstall-ng) continue ;;
171   kernel-alx) continue ;;   kernel-alx) continue ;;
172   kernel26-alx) continue ;;   kernel26-alx) continue ;;
173   kernel-sources-alx) continue ;;   kernel-sources-alx) continue ;;
# Line 206  then Line 223  then
223   rm -f /.orphaned   rm -f /.orphaned
224  fi  fi
225    
226  if [[ -f /.dist-upgrade ]]  #if [[ -f /.dist-upgrade ]]
227  then  #then
228   rm -f /.dist-upgrade  # rm -f /.dist-upgrade
229   # force a reboot at this point here  # # force a reboot at this point here
230   reboot -f  # ( reboot -f & ); exit 0
231  fi  #fi

Legend:
Removed from v.2180  
changed lines
  Added in v.2181