diff options
author | damien <damien@mandriva.com> | 2000-11-28 16:56:52 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2000-11-28 16:56:52 +0000 |
commit | 0880c7ba8ce88e87fa600aeb367a8f88a3ae71e7 (patch) | |
tree | 33f7ac905998f9ad6d85090f777ee4c0d0c67032 /perl-install/standalone/diskdrake | |
parent | d5c526273db473a7d87a26000585900fc10dda7d (diff) | |
download | drakx-0880c7ba8ce88e87fa600aeb367a8f88a3ae71e7.tar drakx-0880c7ba8ce88e87fa600aeb367a8f88a3ae71e7.tar.gz drakx-0880c7ba8ce88e87fa600aeb367a8f88a3ae71e7.tar.bz2 drakx-0880c7ba8ce88e87fa600aeb367a8f88a3ae71e7.tar.xz drakx-0880c7ba8ce88e87fa600aeb367a8f88a3ae71e7.zip |
branch to build the firewall install.topic/unlabeled-1.1.1
Diffstat (limited to 'perl-install/standalone/diskdrake')
-rwxr-xr-x | perl-install/standalone/diskdrake | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/perl-install/standalone/diskdrake b/perl-install/standalone/diskdrake index a3ffafe83..6696f29f4 100755 --- a/perl-install/standalone/diskdrake +++ b/perl-install/standalone/diskdrake @@ -22,7 +22,7 @@ # DiskDrake is also based upon the libfdisk and the install from Red Hat Software -use lib qw(/usr/lib/libDrakX .); +use lib qw(/usr/lib/libDrakX); use common qw(:common :functional); use diskdrake; use interactive_gtk; @@ -30,9 +30,15 @@ use detect_devices; use fsedit; use fs; use log; +use c; +local $_ = join '', @ARGV; + +/-h/ and die "usage: diskdrake [--expert] [--testing]\n"; + +$::expert = /-expert/; +$::testing = /-testing/; $::isStandalone = 1; -#$::expert = 1; if ($>) { $ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}"; @@ -56,11 +62,11 @@ my $hds = I'll try to go on blanking bad partitions"), $err]); }; -$SIG{__DIE__} = sub { chomp $_[0]; log::l("ERROR: $_[0]") }; +$SIG{__DIE__} = sub { chomp (my $m = $_[0]); log::l("ERROR: $m") }; my $fstab = [ fsedit::get_fstab(@$hds) ]; fs::get_mntpoints_from_fstab($fstab); fs::check_mounted($fstab); diskdrake::main($hds, {}, $in); -exec "true"; +$in->exit(0); |