summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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