#!/bin/sh # Copyright (C) 2019 Mellanox Technologies Ltd. # Copyright (C) 2019 Michael Shych # # SPDX-License-Identifier: GPL-2.0 this_script=${ONIE_FWPKG_PROGRAM_NAME:-$(basename $(realpath $0))} onie_mount=/mnt/onie-boot os_boot=/host onie_partition= export ONIE_FWPKG_PROGRAM_NAME=$(basename $(realpath $0)) usage() { cat < before update." clean_onie_access exit 1 fi ;; purge | show | show-results | show-log | show-pending | help) ;; *) echo "Unknown command: $cmd" exit 1 ;; esac enable_onie_access $onie_mount/onie/tools/bin/onie-fwpkg "$@" rc=$? if [ $cmd = "help" ]; then usage fi clean_onie_access exit $rc