From 4c89b815bc4049be4293ffb7c5bbac7dcd751b2d Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Thu, 12 Apr 2001 14:35:44 +0000 Subject: updated to use current working directory if valable or /mnt/cdrom in any other cases. --- live_update | 8 ++++++-- 1 file 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 -- cgit v1.2.1