X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fbootscripts%2Fportmap;h=f38670484437e9e45dc2ba39ec72fee41f2e3cde;hb=8a3ca89281fa60a712e637b2a99dec05322fbe6e;hp=9a54dc4d573322e03fde2fbb3b9ad48f7bf67948;hpb=be41960e19c9daee738916df4138559a262ca34a;p=hvlinux.git diff --git a/stage3/bootscripts/portmap b/stage3/bootscripts/portmap index 9a54dc4..f386704 100755 --- a/stage3/bootscripts/portmap +++ b/stage3/bootscripts/portmap @@ -1,12 +1,22 @@ #!/bin/sh # portmap +# Needed by both the NFS server and client # Source functions library 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 +26,11 @@ case "$1" in stop) cmd_run_log_box_warn "portmap stop" killproc portmap ;; - + reload) reloadproc portmap ;; - + restart) $0 stop sleep 1 @@ -30,7 +40,7 @@ case "$1" in status) statusproc portmap ;; - + *) echo "Usage: $0 {reload|restart|start|status|stop}" exit ${EXIT_CODE_FAILURE}