From 642b3125d60db03f122fe74ce51f0097f593bcab Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sun, 21 Apr 2024 13:30:13 +0200 Subject: [PATCH] Update openhd_sys_utils.sh --- openhd_sys_utils.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openhd_sys_utils.sh b/openhd_sys_utils.sh index 6a664b0..2c32148 100644 --- a/openhd_sys_utils.sh +++ b/openhd_sys_utils.sh @@ -50,6 +50,9 @@ if [ -f "/boot/openhd/rock-rk3566.txt" ] || [ -f "/boot/openhd/openhd/rock-rk356 mv /home/openhd/Videos_emmc/* /home/openhd/Videos fi echo "run initRock" + if [ -e /config/write_logs.txt ]; then + sudo journalctl > /config/logs.txt + fi sudo bash /usr/local/bin/initRock.sh > /boot/debug.txt if [ -f "/boot/openhd/clearEMMC.txt" ] || [ -f "/home/openhd/Videos/clearEMMC.txt" ] ; then (pv -n /dev/zero | dd of=/dev/mmcblk0 bs=128M conv=notrunc,noerror) 2>&1 | whiptail --gauge "Flashing OpenHD to EMMC, please wait... (if this fails, please manually reboot)" 10 70 0