Skip to content

Commit

Permalink
Added a script that shows the recore calibration document
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasbakken committed May 26, 2024
1 parent 1014d69 commit b0c94a2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions userpatches/overlay/bins/get-recore-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -e

mkdir -p /mnt/config
LODEV=$(losetup -f)
losetup -P "$LODEV" /dev/mmcblk2boot0
mount -r "$LODEV"p1 /mnt/config/

CONFIG=$(ls /mnt/config/*.json)
cat "$CONFIG"
umount /mnt/config
losetup -d "$LODEV"
5 changes: 4 additions & 1 deletion userpatches/overlay/install_components/post_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ post_build() {
# Disable SSH. Can be enabled in Reflash
systemctl disable ssh

# Reload daemon after change. Might help with Rebuild isue #27
systemctl daemon-reload

# Disable SSH root access
sed -i 's/^PermitRootLogin.*$/#PermitRootLogin/g' /etc/ssh/sshd_config

Expand All @@ -24,5 +27,5 @@ post_build() {
chage -d 0 debian

TAG=$(cat /tmp/overlay/rebuild/rebuild-tag)
sed -i "s/PRETTY_NAME=\"/PRETTY_NAME=\"Rebuild ${TAG}\//" /etc/os-release
sed -i "s/PRETTY_NAME=\"/PRETTY_NAME=\"Rebuild ${TAG}\//" /etc/os-release
}

0 comments on commit b0c94a2

Please sign in to comment.