Commit 95add551 authored by Benoit Rat's avatar Benoit Rat

sw: apts: automatically obtain NFS IP

parent 0d8572e0
......@@ -8,7 +8,7 @@ cd $(dirname $0)
## setup default parameters
setupGlobalVar "APTS_SWITCH_DIR" "$(dirname $0)"
setupGlobalVar "APTS_HOST_DIR" "."
setupGlobalVar "APTS_HOST_IP" "192.168.7.7"
setupGlobalVar "APTS_HOST_IP" "$(netstat | grep nfsd | sed 's/.* \([0-9.]*\):nfsd.*/\1/')"
## Creating directories structure
mkdir ${APTS_SWITCH_DIR}/bin &> /dev/null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment