blob: 84a41e01d1a40e0bfcf884ed9a28c7c5d58b6c82 [file] [log] [blame]
tom5c255702014-09-18 06:57:39 -07001#!/bin/bash
Pavlin Radoslavov91413792014-10-15 11:00:32 -07002# -----------------------------------------------------------------------------
tom5c255702014-09-18 06:57:39 -07003# ONOS command-line client
Pavlin Radoslavov91413792014-10-15 11:00:32 -07004# -----------------------------------------------------------------------------
tom5c255702014-09-18 06:57:39 -07005
Yuta HIGUCHI885089b2014-11-04 09:33:17 -08006if [ -z "${JAVA_HOME}" ]; then
7 if [ -x /usr/libexec/java_home ]; then
8 export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
9 elif [ -d /usr/lib/jvm/java-8-oracle ]; then
10 export JAVA_HOME="/usr/lib/jvm/java-8-oracle"
11 elif [ -d /usr/lib/jvm/java-7-openjdk-amd64 ]; then
12 export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
13 fi
14fi
tom5c255702014-09-18 06:57:39 -070015
Thomas Vachuskab105fd42014-10-20 09:02:27 -070016cd $(dirname $0)/../apache-karaf-$KARAF_VERSION/bin
Thomas Vachuska4b420772014-10-30 16:46:17 -070017./client -h localhost -u karaf "$@"