3
# "cdromupgrade" is a shell script wrapper around the dist-upgrader
4
# to make it possible to put it onto the top-level dir of a CD and
7
# Not that useful unfortunately when the CD is mounted "noexec".
9
# WARNING: make sure to call it with a absolute path!
10
# (e.g. /cdrom/cdromupgrade)
12
# the codename is AUTO-GENERATED from the build-host relase codename
14
UPGRADER_DIR=dists/stable/main/dist-upgrader/binary-all/
17
fullpath="$cddirname/$UPGRADER_DIR"
19
# extrace the tar to a TMPDIR and run it from there
20
if [ ! -f "$fullpath/$CODENAME.tar.gz" ]; then
21
echo "Could not find the upgrade application archive, exiting"
27
tar xzf "$fullpath/$CODENAME.tar.gz"
28
if [ ! -x $TMPDIR/$CODENAME ]; then
29
echo "Could not find the upgrade application in the archive, exiting"
32
$TMPDIR/$CODENAME --cdrom "$cddirname" $@