summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/diskdrake
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-11-30 17:19:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-11-30 17:19:30 +0000
commita3d5079d63d53d7a639162a03a89fa8fdcfbee8a (patch)
treeca49369788e9776ddfce6e0b93e33413908b6ea0 /perl-install/standalone/diskdrake
parent2f9e01cce5dba4fa11add841f63d0afea97d85eb (diff)
downloaddrakx-backup-do-not-use-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar
drakx-backup-do-not-use-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar.gz
drakx-backup-do-not-use-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar.bz2
drakx-backup-do-not-use-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar.xz
drakx-backup-do-not-use-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.zip
fileshare should be ok, handle diskdrake --fileshare, fix smb import
Diffstat (limited to 'perl-install/standalone/diskdrake')
-rwxr-xr-xperl-install/standalone/diskdrake9
1 files changed, 8 insertions, 1 deletions
diff --git a/perl-install/standalone/diskdrake b/perl-install/standalone/diskdrake
index 4ae662a86..be570dadb 100755
--- a/perl-install/standalone/diskdrake
+++ b/perl-install/standalone/diskdrake
@@ -43,10 +43,11 @@ if ($::isEmbedded) {
local $_ = join '', @ARGV;
-/-h/ and die "usage: diskdrake [--expert] [--testing]\n";
+/-h/ and die "usage: diskdrake [--expert] [--testing] [--fileshare]\n";
$::expert = /-expert/;
$::testing = /-testing/;
+my $fileshare = /-fileshare/;
if ($>) {
$ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}";
@@ -54,6 +55,12 @@ if ($>) {
my $in = 'interactive'->vnew('su');
+
+if ($fileshare) {
+ any::fileshare_config($in);
+ $in->exit(0);
+}
+
my ($all_hds) =
catch_cdie { fsedit::hds([ detect_devices::hds() ], {}) }
sub {