Showing
2 changed files
with
6 additions
and
0 deletions
... | @@ -3,6 +3,9 @@ | ... | @@ -3,6 +3,9 @@ |
3 | # ONOS remote command-line client. | 3 | # ONOS remote command-line client. |
4 | #------------------------------------------------------------------------------- | 4 | #------------------------------------------------------------------------------- |
5 | 5 | ||
6 | +[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 | ||
7 | +. $ONOS_ROOT/tools/build/envDefaults | ||
8 | + | ||
6 | [ "$1" = "-w" ] && shift && onos-wait-for-start $1 | 9 | [ "$1" = "-w" ] && shift && onos-wait-for-start $1 |
7 | 10 | ||
8 | [ -n "$1" ] && OCI=$1 && shift | 11 | [ -n "$1" ] && OCI=$1 && shift | ... | ... |
... | @@ -3,6 +3,9 @@ | ... | @@ -3,6 +3,9 @@ |
3 | # Launches ONOS GUI on the specified node. | 3 | # Launches ONOS GUI on the specified node. |
4 | #------------------------------------------------------------------------------- | 4 | #------------------------------------------------------------------------------- |
5 | 5 | ||
6 | +[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 | ||
7 | +. $ONOS_ROOT/tools/build/envDefaults | ||
8 | + | ||
6 | host=${1:-$OCI} | 9 | host=${1:-$OCI} |
7 | host=${host:-localhost} | 10 | host=${host:-localhost} |
8 | 11 | ... | ... |
-
Please register or login to post a comment