Commit 7dd49eb 1 parent 443b0f2 commit 7dd49eb Copy full SHA for 7dd49eb
File tree 1 file changed +8
-8
lines changed
automated/linux/ota-rollback
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ DEBUG="false"
18
18
SOTA_CONFDIR=" /etc/sota/conf.d"
19
19
20
20
usage () {
21
- echo " \
22
- Usage: $0 [-t <kernel|uboot>] [-u <u-boot var read>] [-s <u-boot var set>] [-o <ostree|ostree+compose_apps>] [-d <true|false>]
21
+ echo " \
22
+ Usage: $0 [-t <kernel|uboot>] [-u <u-boot var read>] [-s <u-boot var set>] [-o <ostree|ostree+compose_apps>] [-d <true|false>]
23
23
24
24
-t <kernel|uboot|app>
25
25
This determines type of corruption test performed:
@@ -50,11 +50,11 @@ usage() {
50
50
DEPLOYMENT_HASH ostree commit ID and is used in the
51
51
filesystem paths.
52
52
-d <true|false> Enables more debug messages. Default: false
53
- "
53
+ "
54
54
}
55
55
56
56
while getopts " t:u:s:o:f:d:h" opts; do
57
- case " $opts " in
57
+ case " $opts " in
58
58
t) TYPE=" ${OPTARG} " ;;
59
59
u) UBOOT_VAR_TOOL=" ${OPTARG} " ;;
60
60
s) UBOOT_VAR_SET_TOOL=" ${OPTARG} " ;;
@@ -64,7 +64,7 @@ while getopts "t:u:s:o:f:d:h" opts; do
64
64
;;
65
65
d) DEBUG=" ${OPTARG} " ;;
66
66
h|* ) usage ; exit 1 ;;
67
- esac
67
+ esac
68
68
done
69
69
70
70
# the script works only on builds with aktualizr-lite
156
156
# wait for 'install-post' signal
157
157
while ! grep " install-post" /var/sota/ota.signal
158
158
do
159
- echo " Sleeping 1s"
160
- sleep 1
161
- cat /var/sota/ota.signal
159
+ echo " Sleeping 1s"
160
+ sleep 1
161
+ cat /var/sota/ota.signal
162
162
done
163
163
report_pass " ${TYPE} -install-post-received"
164
164
You can’t perform that action at this time.
0 commit comments