summaryrefslogtreecommitdiffstats
path: root/live_update
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-04-12 14:35:44 +0000
committerFrancois Pons <fpons@mandriva.com>2001-04-12 14:35:44 +0000
commit4c89b815bc4049be4293ffb7c5bbac7dcd751b2d (patch)
tree7b463ae0574c04f831909e4460aefc6f1156822e /live_update
parent7f64f4f0b7b6e29cf6c81a1d2361372378ad948b (diff)
downloaddrakx-backup-do-not-use-4c89b815bc4049be4293ffb7c5bbac7dcd751b2d.tar
drakx-backup-do-not-use-4c89b815bc4049be4293ffb7c5bbac7dcd751b2d.tar.gz
drakx-backup-do-not-use-4c89b815bc4049be4293ffb7c5bbac7dcd751b2d.tar.bz2
drakx-backup-do-not-use-4c89b815bc4049be4293ffb7c5bbac7dcd751b2d.tar.xz
drakx-backup-do-not-use-4c89b815bc4049be4293ffb7c5bbac7dcd751b2d.zip
updated to use current working directory if valable or /mnt/cdrom in
any other cases.
Diffstat (limited to 'live_update')
-rw-r--r--live_update8
1 files changed, 6 insertions, 2 deletions
diff --git a/live_update b/live_update
index f17845e2d..02d46ea18 100644
--- a/live_update
+++ b/live_update
@@ -23,7 +23,11 @@ You need to be root to start this program." ;;
exit 3
fi
-if [ ! -x "/mnt/cdrom/Mandrake/mdkinst/usr/bin/perl-install/live_install" ]; then
+distrib=`pwd`;
+if [ ! -x "$distrib/Mandrake/mdkinst/usr/bin/perl-install/live_install" ]; then
+ distrib="/mnt/cdrom"
+fi
+if [ ! -x "$distrib/Mandrake/mdkinst/usr/bin/perl-install/live_install" ]; then
if [ -x "$message" ]; then
case "$LANG" in
fr*) buttons="Arręter:0"
@@ -69,5 +73,5 @@ take some time to prepare the system before DrakX screen appears.
Press CTRL-C to avoid upgrading your system this way."
fi
-cd /mnt/cdrom/Mandrake/mdkinst/usr/bin/perl-install && exec ./live_install
+cd "$distrib/Mandrake/mdkinst/usr/bin/perl-install" && exec ./live_install
exit 2