diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-01-06 17:02:14 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-01-06 17:02:14 +0000 |
commit | 66a728f33639c6b4ca379e310f3c2536123fc014 (patch) | |
tree | fe6308c41aaf8252ff315e800cd0aab2b84b796a /perl-install/standalone | |
parent | d5bdac3e48cbdf2317dc6bcf98cd5a5117af5ac0 (diff) | |
download | drakx-66a728f33639c6b4ca379e310f3c2536123fc014.tar drakx-66a728f33639c6b4ca379e310f3c2536123fc014.tar.gz drakx-66a728f33639c6b4ca379e310f3c2536123fc014.tar.bz2 drakx-66a728f33639c6b4ca379e310f3c2536123fc014.tar.xz drakx-66a728f33639c6b4ca379e310f3c2536123fc014.zip |
obsolete livedrake, live_install, live_update
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/livedrake | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/perl-install/standalone/livedrake b/perl-install/standalone/livedrake deleted file mode 100755 index 3d34d08d7..000000000 --- a/perl-install/standalone/livedrake +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/perl - -use lib qw(/usr/lib/libDrakX); - -use standalone; #- warning, standalone must be loaded very first, for 'explanations' - -use common; -use interactive; -use run_program; -use c; - -my $in = 'interactive'->vnew('su'); - -my $cd_mntpoint = "/mnt/cdrom"; - -while (! -x "$cd_mntpoint/Mandrake/mdkinst/usr/bin/perl-install/live_install") { - ejectCdrom(); - $in->ask_okcancel(N("Change Cd-Rom"), -N("Please insert the Installation Cd-Rom in your drive and press Ok when done. -If you don't have it, press Cancel to avoid live upgrade."), 1) or $in->exit(0); - run_program::run("mount", "/mnt/cdrom"); -} - -if (-x "$cd_mntpoint/Mandrake/mdkinst/usr/bin/perl-install/live_install") { - chdir "/$cd_mntpoint/Mandrake/mdkinst/usr/bin/perl-install/"; - $::testing or exec "./live_install"; -} - -$in->ask_warn('', N("Unable to start live upgrade !!!\n")); -$in->exit(1); - -sub ejectCdrom { - my ($cdrom) = @_; - $cdrom or cat_("/proc/mounts") =~ m|(/dev/\S+)\s+/mnt/cdrom\s| and $cdrom = $1; - $cdrom or cat_("/etc/fstab") =~ m|(/dev/\S+)\s+/mnt/cdrom\s| and $cdrom = $1; - my $f = eval { $cdrom && detect_devices::tryOpen($cdrom) } or return; - run_program::run("umount", "/mnt/cdrom"); - ioctl $f, c::CDROM_LOCKDOOR(), 0; - ioctl $f, c::CDROMEJECT(), 1; -} |