Skip to content

Commit

Permalink
Fixup of the kano-uixinit skip for workshops
Browse files Browse the repository at this point in the history
  • Loading branch information
pazdera committed Oct 30, 2014
1 parent a5a0a69 commit deb34fc
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions bin/kano-uixinit
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,29 @@ function first_boot_part_1
# Launch init flow from the beginning
sudo kano-init-flow $LAUNCH_START
EXIT_CODE=$?

# Skip the wifi settings and update for workshops
if [ "$FLOW" == "workshops" ]; then
EXIT_CODE=$LAUNCH_SETTINGS
fi
else
# This is not the first boot, RPi reboot before updater step
# Check for internet
/usr/bin/is_internet
rc=$?
if [ "$rc" -eq "0" ]; then
sudo kano-init-flow $LAUNCH_UPDATER
EXIT_CODE=$?
# Skip the update for workshops
if [ "$FLOW" == "workshops" ]; then
EXIT_CODE=$LAUNCH_SETTINGS
else
# Launch again internet screen
sudo kano-init-flow $LAUNCH_WIFI_CONFIG
EXIT_CODE=$?
fi
# Check for internet
/usr/bin/is_internet
rc=$?
if [ "$rc" -eq "0" ]; then
sudo kano-init-flow $LAUNCH_UPDATER
EXIT_CODE=$?
else
# Launch again internet screen
sudo kano-init-flow $LAUNCH_WIFI_CONFIG
EXIT_CODE=$?
fi
fi
fi

repeats=0
Expand Down

0 comments on commit deb34fc

Please sign in to comment.