summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig/xfree3.pm
Commit message (Expand)AuthorAgeFilesLines
* Xconfig::xfree3::set_resolution and Xconfig::xfree4::set_resolution must not ...Pascal Rigaux2002-08-281-5/+4
* use Protocol IMPS/2 when ExplorerPS/2 is asked for (since ExplorerPS/2 doesn'...Pascal Rigaux2002-08-221-0/+10
* make wacom config workPascal Rigaux2002-08-061-1/+1
* 14 new modules, will it be enough?? :)Pascal Rigaux2002-07-281-3/+195
* new XFree handling libraryPascal Rigaux2002-07-241-0/+56
f/perl-install/standalone/livedrake?h=17.22&id=a3e2c7be4443cb41d435ea38cd7f3e253709afcc&id2=f9128b9427f10815fb59db2eb65ee29a8d80b6d8'>diff)downloaddrakx-a3e2c7be4443cb41d435ea38cd7f3e253709afcc.tar
drakx-a3e2c7be4443cb41d435ea38cd7f3e253709afcc.tar.gz
drakx-a3e2c7be4443cb41d435ea38cd7f3e253709afcc.tar.bz2
drakx-a3e2c7be4443cb41d435ea38cd7f3e253709afcc.tar.xz
drakx-a3e2c7be4443cb41d435ea38cd7f3e253709afcc.zip
*** empty log message ***
Diffstat (limited to 'perl-install/standalone/livedrake')
-rwxr-xr-xperl-install/standalone/livedrake18
1 files changed, 6 insertions, 12 deletions
diff --git a/perl-install/standalone/livedrake b/perl-install/standalone/livedrake
index b9c1e9471..f93cfefbb 100755
--- a/perl-install/standalone/livedrake
+++ b/perl-install/standalone/livedrake
@@ -2,9 +2,9 @@
use lib qw(/usr/lib/libDrakX);
-use common qw(:common :system);
+use common qw(:common :system :file);
use interactive;
-use mouse;
+use run_program;
use c;
local $_ = join '', @ARGV;
@@ -23,7 +23,7 @@ while (! -x "$cd_mntpoint/Mandrake/mdkinst/usr/bin/perl-install/live_install") {
$in->ask_okcancel(_("Change Cd-Rom"),
_("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);
- eval { fs::mount("/mnt/cdrom") };
+ run_program::run("mount", "/mnt/cdrom");
}
if (-x "$cd_mntpoint/Mandrake/mdkinst/usr/bin/perl-install/live_install") {
@@ -34,18 +34,12 @@ if (-x "$cd_mntpoint/Mandrake/mdkinst/usr/bin/perl-install/live_install") {
$in->ask_warn('', _("Unable to start live upgrade !!!\n"));
$in->exit(1);
-sub unlockCdrom {
- 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;
- eval { $cdrom and ioctl detect_devices::tryOpen($1), c::CDROM_LOCKDOOR(), 0 };
-}
-
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;
- getFile("XXX"); #- close still opened filehandle
- eval { fs::umount("/mnt/cdrom") };
+ run_program::run("umount", "/mnt/cdrom");
+ ioctl $f, c::CDROM_LOCKDOOR(), 0;
ioctl $f, c::CDROMEJECT(), 1;
}