Skip to content

Commit

Permalink
Merge branch 'jb52391' into 'master'
Browse files Browse the repository at this point in the history
Fix oneshot to run on the first boot instead of mic run.

See merge request mer-core/ssu!52
  • Loading branch information
Matti Kosola committed Dec 17, 2020
2 parents 71a4bcd + bfd70b8 commit ed0a628
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 ed0a628

Please sign in to comment.