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 |
{ |
{ |
47 |
fi |
fi |
48 |
|
|
49 |
sleep 3 |
sleep 3 |
50 |
|
|
51 |
return "${ret}" |
return "${ret}" |
52 |
} |
} |
53 |
|
|
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 ] |
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 |
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?? |
|
|
|
|