From c7ea148007d7fb11cbf2e091b8150888273b13f6 Mon Sep 17 00:00:00 2001 From: Josef-MrBeam Date: Tue, 20 Feb 2024 13:26:51 +0100 Subject: [PATCH] swith migration to reboot instead of shutdown --- src/modules/beamos/filesystem/migration/usr/bin/migration.sh | 4 ++-- src/modules/beamos/start_chroot_script | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/beamos/filesystem/migration/usr/bin/migration.sh b/src/modules/beamos/filesystem/migration/usr/bin/migration.sh index 0f241fe..d5b6e72 100755 --- a/src/modules/beamos/filesystem/migration/usr/bin/migration.sh +++ b/src/modules/beamos/filesystem/migration/usr/bin/migration.sh @@ -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 } diff --git a/src/modules/beamos/start_chroot_script b/src/modules/beamos/start_chroot_script index c4a6ff2..9b1ffb2 100755 --- a/src/modules/beamos/start_chroot_script +++ b/src/modules/beamos/start_chroot_script @@ -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" \ No newline at end of file