Skip to content

Commit

Permalink
automated: linux: reformat ota-rollback/download-update.sh
Browse files Browse the repository at this point in the history
Use only spaces, no tabs

Signed-off-by: Milosz Wasilewski <[email protected]>
  • Loading branch information
mwasilew committed Jun 11, 2024
1 parent 0af0588 commit ce776b8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions automated/linux/ota-rollback/download-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ DEBUG="false"
SOTA_CONFDIR="/etc/sota/conf.d"

usage() {
echo "\
Usage: $0 [-t <kernel|uboot>] [-u <u-boot var read>] [-s <u-boot var set>] [-o <ostree|ostree+compose_apps>] [-d <true|false>]
echo "\
Usage: $0 [-t <kernel|uboot>] [-u <u-boot var read>] [-s <u-boot var set>] [-o <ostree|ostree+compose_apps>] [-d <true|false>]
-t <kernel|uboot|app>
This determines type of corruption test performed:
Expand Down Expand Up @@ -50,11 +50,11 @@ usage() {
DEPLOYMENT_HASH ostree commit ID and is used in the
filesystem paths.
-d <true|false> Enables more debug messages. Default: false
"
"
}

while getopts "t:u:s:o:f:d:h" opts; do
case "$opts" in
case "$opts" in
t) TYPE="${OPTARG}";;
u) UBOOT_VAR_TOOL="${OPTARG}";;
s) UBOOT_VAR_SET_TOOL="${OPTARG}";;
Expand All @@ -64,7 +64,7 @@ while getopts "t:u:s:o:f:d:h" opts; do
;;
d) DEBUG="${OPTARG}";;
h|*) usage ; exit 1 ;;
esac
esac
done

# the script works only on builds with aktualizr-lite
Expand Down Expand Up @@ -156,9 +156,9 @@ fi
# wait for 'install-post' signal
while ! grep "install-post" /var/sota/ota.signal
do
echo "Sleeping 1s"
sleep 1
cat /var/sota/ota.signal
echo "Sleeping 1s"
sleep 1
cat /var/sota/ota.signal
done
report_pass "${TYPE}-install-post-received"

Expand Down

0 comments on commit ce776b8

Please sign in to comment.