-Change permissions /etc/sudoers
[hvlinux.git] / stage3 / bootscripts / portmap
index 9a54dc4..3daf753 100755 (executable)
@@ -7,6 +7,14 @@ source /etc/rc.d/init.d/functions
 
 log_script_name "$0 $*"
 
+# Load global network parameters
+source /etc/sysconfig/network/network-parameters
+
+# Check if NFS server must be enabled
+if [ "x${NFS_SERVER_ENA}" != "xyes" -a "x${NFS_SERVER_ENA}" != "xYes" -a "x${NFS_SERVER_ENA}" != "xYES" ]; then
+    exit ${EXIT_CODE_SUCCESS}
+fi
+
 # See how we were called
 case "$1" in
     start)
@@ -16,11 +24,11 @@ case "$1" in
     stop)
        cmd_run_log_box_warn "portmap stop" killproc portmap
        ;;
-   
+
     reload)
        reloadproc portmap
        ;;
-    
+
     restart)
        $0 stop
        sleep 1
@@ -30,7 +38,7 @@ case "$1" in
     status)
        statusproc portmap
        ;;
-    
+
     *)
        echo "Usage: $0 {reload|restart|start|status|stop}"
         exit ${EXIT_CODE_FAILURE}