Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tools/create_virtual_hardware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ set -x
SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
OMICRON_TOP="$SOURCE_DIR/.."

MARKER=/etc/opt/oxide/NO_INSTALL
if [[ -f "$MARKER" ]]; then
echo "This system has the marker file $MARKER, aborting." >&2
exit 1
fi

# Select the physical link over which to simulate the Chelsio links
if [[ $# -ge 1 ]]; then
PHYSICAL_LINK="$1"
Expand Down
6 changes: 6 additions & 0 deletions tools/destroy_virtual_hardware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd "${SOURCE_DIR}/.."
OMICRON_TOP="$PWD"

MARKER=/etc/opt/oxide/NO_INSTALL
if [[ -f "$MARKER" ]]; then
echo "This system has the marker file $MARKER, aborting." >&2
exit 1
fi

if [[ "$(id -u)" -ne 0 ]]; then
echo "This must be run as root"
exit 1
Expand Down
6 changes: 6 additions & 0 deletions tools/install_opte.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ set -e
set -u
set -x

MARKER=/etc/opt/oxide/NO_INSTALL
if [[ -f "$MARKER" ]]; then
echo "This system has the marker file $MARKER, aborting." >&2
exit 1
fi

if [[ "$(uname)" != "SunOS" ]]; then
echo "This script is intended for Helios only"
fi
Expand Down
6 changes: 6 additions & 0 deletions tools/install_prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -eu

MARKER=/etc/opt/oxide/NO_INSTALL
if [[ -f "$MARKER" ]]; then
echo "This system has the marker file $MARKER, aborting." >&2
exit 1
fi

# Set the CWD to Omicron's source.
SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd "${SOURCE_DIR}/.."
Expand Down