You've already forked dts-scripts
mirror of
https://github.com/Dasharo/dts-scripts.git
synced 2026-03-06 15:01:22 -08:00
e6d7198e4b
For list of pre-commit warnings checkout: https://www.shellcheck.net/wiki/ Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
18 lines
412 B
Bash
18 lines
412 B
Bash
#!/bin/bash
|
|
|
|
# SPDX-FileCopyrightText: 2024 3mdeb <contact@3mdeb.com>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
SBIN_DIR="/usr/sbin"
|
|
FUM_EFIVAR="/sys/firmware/efi/vars/FirmwareUpdateMode-d15b327e-ff2d-4fc1-abf6-c12bd08c1359"
|
|
|
|
export DTS_FUNCS="$SBIN_DIR/dts-functions.sh"
|
|
export DTS_ENV="$SBIN_DIR/dts-environment.sh"
|
|
|
|
if [ -d $FUM_EFIVAR ]; then
|
|
$SBIN_DIR/dasharo-deploy update fum
|
|
else
|
|
$SBIN_DIR/dts
|
|
fi
|