Skip to content

Commit

Permalink
fix reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-MrBeam committed Feb 20, 2024
1 parent 9a715f0 commit 5c9bd3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BASEDIR="/usr/bin"
# Mount the SD-Card
# Restore Sensitive Data
# Set LED Status Success/Fail
# Shutdown the device
# Reboot the device

timestamp()
{
Expand Down Expand Up @@ -80,13 +80,13 @@ if [ "$exit_code" -ne 0 ]; then
exit 100
fi

# Shutdown the device
echo "$(timestamp) $0: Shutdown the device"
# Reboot the device
echo "$(timestamp) $0: Reboot the device"
sudo bash ${BASEDIR}/migration.sh set-status success
sudo bash ${BASEDIR}/migration.sh shutdown
sudo bash ${BASEDIR}/migration.sh reboot
exit_code=$?
if [ "$exit_code" -ne 0 ]; then
echo "$(timestamp) $0: Shutdown the device failed"
echo "$(timestamp) $0: Reboot the device failed"
exit 100
fi

Expand Down
2 changes: 1 addition & 1 deletion src/modules/beamos/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -555,4 +555,4 @@ update-rc.d beamos_first_boot defaults
# Dirty fix for reboot issue
line_to_append="gpio=14=ip,pu"
file_path="/boot/config.txt"
sed -i "1i$line_to_append" "$file_path"
sed -i "1i$line_to_append" "$file_path"

0 comments on commit 5c9bd3f

Please sign in to comment.