blob: 97c4402f8c6723901c138ffcc507248402a198a6 [file] [log] [blame]
#!/bin/sh
# Copyright 2020-present Open Networking Foundation
#
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
set -xe
DIR=""
if [ -d "/free5gc/nrf" ]; then
DIR="/free5gc"
echo "free5gc directory exist"
fi
if [ -d "/sdcore/nrf" ]; then
DIR="/sdcore"
echo "sdcore directory exist"
fi
{{- if .Values.config.coreDump.enabled }}
cp $DIR/nrf/nrf /tmp/coredump/
{{- end }}
cd $DIR
cat config/nrfcfg.conf
GOTRACEBACK=crash ./nrf/nrf -nrfcfg config/nrfcfg.conf