diff options
author | Florent Villard <warly@mandriva.com> | 2003-03-02 12:46:22 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2003-03-02 12:46:22 +0000 |
commit | fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9 (patch) | |
tree | ae59719bf71004f9811a39d31d0c5a5b8047b6e8 /nfs_wizard/scripts | |
parent | f3608ba72c38db1a2b7dc21e20f396064c988b2b (diff) | |
download | drakwizard-fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9.tar drakwizard-fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9.tar.gz drakwizard-fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9.tar.bz2 drakwizard-fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9.tar.xz drakwizard-fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9.zip |
start nfs server if not running at the end of nfs wizard
Diffstat (limited to 'nfs_wizard/scripts')
-rw-r--r-- | nfs_wizard/scripts/NFSConf.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nfs_wizard/scripts/NFSConf.pm b/nfs_wizard/scripts/NFSConf.pm index e21327bb..580aa9ef 100644 --- a/nfs_wizard/scripts/NFSConf.pm +++ b/nfs_wizard/scripts/NFSConf.pm @@ -19,9 +19,11 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. package NFSConf; +use lib "/usr/lib/libDrakX"; require "__WIZ_HOME__/common/scripts/Vareqval.pm"; require "__WIZ_HOME__/common/scripts/IFCFG.pm"; use MDK::Common; +use services; use strict; my $o = IFCFG->new(); @@ -60,5 +62,6 @@ sub do_it { substInFile { s|^(?!\#).*$ENV{wiz_nfs_dir}\s.*|\#$&|} $file; append_to_file($file, $line); system("/usr/sbin/exportfs -a"); - 10; + services::is_service_running('nfs') and services::start('nfs'); + 10 } |