diff options
Diffstat (limited to 'nfs_wizard/scripts/NFSConf.pm')
-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 } |