File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
src/modules/usage-statistics
filesystem/root_lepotato/usr/bin Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ LEPOTATO_SERIAL=/sys/bus/platform/drivers/meson-sm/firmware:secure-monitor/serial
3+ until $( curl --output /dev/null --silent --head --fail USAGE_STATISTICS_URL/boot? id=` cat " ${LEPOTATO_SERIAL} " | grep -i ' ^Serial' | awk ' { print $3 }' | sha1sum | awk ' { print $1 }' ` ' &version=' ` cat USAGE_STATISTICS_VERSION_FILE | head -n 1` ' &variant=' ` cat /etc/dist_variant | head -n 1` ) ; do
4+ echo " $( date) : try to connect and report boot"
5+ sleep 5
6+ done
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ apt-get update --allow-releaseinfo-change
1313apt-get -y install curl
1414
1515unpack /filesystem/root /
16+ if [ " ${BASE_BOARD} " == " debian_lepotato" ]; then
17+ unpack /filesystem/root_lepotato /
18+ fi
1619
1720# Set hotspot name and password
1821sed -i s" @USAGE_STATISTICS_URL@$USAGE_STATISTICS_URL @g" /usr/bin/boot_report
You can’t perform that action at this time.
0 commit comments