Skip to content

Commit

Permalink
swith migration to reboot instead of shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-MrBeam committed Feb 20, 2024
1 parent ddd4a32 commit c7ea148
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/beamos/filesystem/migration/usr/bin/migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,8 @@ do_config_boot_usb () {
}

do_shutdown () {
echo "$(timestamp) $0: shutdown"
sudo shutdown now
echo "$(timestamp) $0: reboot"
sudo reboot now
exit 0
}

Expand Down
5 changes: 5 additions & 0 deletions src/modules/beamos/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -551,3 +551,8 @@ update-rc.d beamos_first_boot defaults
# let's remove the configs for system services we don't need
# rm /etc/systemd/system/netconnectd.service
# fi

# 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"

0 comments on commit c7ea148

Please sign in to comment.