Brian O'Connor

Reverting onos-service to use cd / pwd instead of readlink

The options (namely -e) are not consistent between Mac OS and Linux.

Change-Id: I2e9ac1d170499f068a925d014cf1b62d5144e5ca
...@@ -16,7 +16,7 @@ set -u # exit on undefined variable ...@@ -16,7 +16,7 @@ set -u # exit on undefined variable
16 # If ONOS_HOME is set, respect its value. 16 # If ONOS_HOME is set, respect its value.
17 # If ONOS_HOME is not set (e.g. in the init or service environment), 17 # If ONOS_HOME is not set (e.g. in the init or service environment),
18 # set it based on this script's path. 18 # set it based on this script's path.
19 -ONOS_HOME=${ONOS_HOME:-$(readlink -e `dirname $0`/..)} 19 +ONOS_HOME=${ONOS_HOME:-$(cd $(dirname $0)/.. >/dev/null 2>&1 && pwd)}
20 KARAF_ARGS= 20 KARAF_ARGS=
21 SYS_APPS=drivers 21 SYS_APPS=drivers
22 ONOS_APPS=${ONOS_APPS:-} # Empty means don't activate any new apps 22 ONOS_APPS=${ONOS_APPS:-} # Empty means don't activate any new apps
......