summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-03-18 23:03:09 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-03-18 23:03:09 +0000
commit920760102dfc0a937f6e0453cbd8c9f36ca63584 (patch)
tree32c1d9456c28d860cd2af99dee14e3a2c4d95e82 /bin
parent0b30e6287ac96155efbc7910068a73291dce821b (diff)
downloaddrakx-net-920760102dfc0a937f6e0453cbd8c9f36ca63584.tar
drakx-net-920760102dfc0a937f6e0453cbd8c9f36ca63584.tar.gz
drakx-net-920760102dfc0a937f6e0453cbd8c9f36ca63584.tar.bz2
drakx-net-920760102dfc0a937f6e0453cbd8c9f36ca63584.tar.xz
drakx-net-920760102dfc0a937f6e0453cbd8c9f36ca63584.zip
Installing portmap with draknfs, and enabling services on boot (#48913).
Diffstat (limited to 'bin')
-rwxr-xr-xbin/draknfs6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/draknfs b/bin/draknfs
index 3d1497b..cc3d42e 100755
--- a/bin/draknfs
+++ b/bin/draknfs
@@ -35,6 +35,7 @@ use ugtk2 qw(:ask :wrappers :create :dialogs);
my $in = 'interactive'->vnew('su');
$in->do_pkgs->ensure_is_installed('nfs-utils', '/etc/rc.d/init.d/nfs-server') or exit(1);
$in->do_pkgs->ensure_is_installed('rpcbind', '/etc/rc.d/init.d/rpcbind') or exit(1);
+$in->do_pkgs->ensure_is_installed('portmap', '/etc/rc.d/init.d/portmap') or exit(1);
use constant COLUMN_DIR => 0;
use constant COLUMN_ACCESS => 1;
@@ -580,8 +581,9 @@ my $okcancel = create_okcancel({
);
my $wait = $in->wait_message(N("Please wait"), N("Starting the NFS-server"));
-services::_run_action('rpcbind', "start");
-services::_run_action('nfs-server', "start");
+services::enable('portmap');
+services::enable('rpcbind');
+services::enable('nfs-server');
undef $wait;
# main interface