Skip to content

Commit

Permalink
[ssu] Fix oneshot to run on the first boot instead of mic run. JB#52391
Browse files Browse the repository at this point in the history
Signed-off-by: Matti Kosola <matti.kosola@jolla.com>
  • Loading branch information
mkosola committed Dec 10, 2020
1 parent 71a4bcd commit bfd70b8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ssu-update-repos
@@ -1,8 +1,9 @@
#!/bin/sh

if [ -z "$MIC_RUN" ]; then
touch /usr/share/ssu/board-mappings.d/*.ini 2>/dev/null
/usr/bin/ssu updaterepos
else
exit 1
if [ "$MIC_RUN" != "" ]; then
echo "ssu-update-repos - returning FAIL to postpone oneshot to first boot"
exit 1
fi

touch /usr/share/ssu/board-mappings.d/*.ini 2>/dev/null
/usr/bin/ssu updaterepos

0 comments on commit bfd70b8

Please sign in to comment.