builder: Better keystore persistence

This commit is contained in:
2018-05-17 13:14:59 +00:00
parent 5272b3438a
commit ca0f919201
4 changed files with 10 additions and 5 deletions
+2
View File
@@ -1,3 +1,5 @@
#!/bin/sh
MODEL=$(cat /etc/board.json | jsonfilter -e '@["model"]["id"]')
# Hostname prefix
+2
View File
@@ -1,3 +1,5 @@
#!/bin/sh
# Randomize restart time
OFFSET=$(awk -v min=1 -v max=59 'BEGIN{srand(); print int(min+rand()*(max-min+1))}')
@@ -0,0 +1,6 @@
#!/bin/sh
echo $AUTHORITY_PATH >> /etc/sysupgrade.conf
echo $CERTIFICATE_PATH >> /etc/sysupgrade.conf
echo $KEY_PATH >> /etc/sysupgrade.conf
echo $REQUEST_PATH >> /etc/sysupgrade.conf