X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fbootscripts%2Fportmap;h=86796d5f49d530543c43284e576ff6811bc26d31;hb=142c1bfb998e405aaaf5383b1fb8e9a49b8c0745;hp=3daf7538297893aabc94beffdc89a8b70371b523;hpb=9e3f8101a7e4d974db8e9afeb9c90c13a43ae8d7;p=hvlinux.git diff --git a/stage3/bootscripts/portmap b/stage3/bootscripts/portmap index 3daf753..86796d5 100755 --- a/stage3/bootscripts/portmap +++ b/stage3/bootscripts/portmap @@ -1,6 +1,7 @@ #!/bin/sh # portmap +# Needed by both the NFS server and client # Source functions library source /etc/rc.d/init.d/functions @@ -10,23 +11,28 @@ log_script_name "$0 $*" # Load global network parameters source /etc/sysconfig/network/network-parameters +DAEMON=/sbin/portmap +DAEMON_DESC="RPC port mapper" +DAEMON_OPTS="" + # 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 +#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) - cmd_run_log_box_warn "portmap start" loadproc portmap + cmd_run_log_box_warn "${DAEMON_DESC} start" loadproc ${DAEMON} ${DAEMON_OPTS} ;; stop) - cmd_run_log_box_warn "portmap stop" killproc portmap + cmd_run_log_box_warn "${DAEMON_DESC} stop" killproc ${DAEMON} ;; reload) - reloadproc portmap + reloadproc ${DAEMON} ;; restart) @@ -36,7 +42,7 @@ case "$1" in ;; status) - statusproc portmap + statusproc ${DAEMON} ;; *)