summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
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
parent2f9e01cce5dba4fa11add841f63d0afea97d85eb (diff)
downloaddrakx-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar
drakx-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar.gz
drakx-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar.bz2
drakx-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.tar.xz
drakx-a3d5079d63d53d7a639162a03a89fa8fdcfbee8a.zip
fileshare should be ok, handle diskdrake --fileshare, fix smb import
Diffstat (limited to 'perl-install/standalone')
-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 {