tom | ac77d76 | 2014-09-18 19:59:42 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | #------------------------------------------------------------------------------- |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 3 | # ONOS remote command-line client. |
tom | ac77d76 | 2014-09-18 19:59:42 -0700 | [diff] [blame] | 4 | #------------------------------------------------------------------------------- |
| 5 | |
tom | a6bc21b | 2014-09-30 09:39:02 -0700 | [diff] [blame] | 6 | [ "$1" = "-w" ] && shift && onos-wait-for-start $1 |
| 7 | |
tom | ac77d76 | 2014-09-18 19:59:42 -0700 | [diff] [blame] | 8 | [ -n "$1" ] && OCI=$1 && shift |
tom | a6bc21b | 2014-09-30 09:39:02 -0700 | [diff] [blame] | 9 | client -h $OCI "$@" 2>/dev/null |