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" |
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 ;; |
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 |