From bd3930b42f9a564bf7cccc508fd0d90f2dbb1590 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Sat, 18 Dec 2021 17:55:32 -0500 Subject: [PATCH] Check for available updates upon end of USBMS session --- usbms_splash.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usbms_splash.cpp b/usbms_splash.cpp index 829ec6a..15b9e63 100644 --- a/usbms_splash.cpp +++ b/usbms_splash.cpp @@ -126,11 +126,16 @@ void usbms_splash::usbms_launch() proc->waitForFinished(); proc->deleteLater(); + // Restarting USBNet // NOTE: USBNet is only started if required conditions are met (see https://github.com/Kobo-InkBox/rootfs/blob/master/etc/init.d/usbnet) string_writeconfig("/opt/ibxd", "usbnet_start\n"); QThread::msleep(1000); + // Mounting onboard storage string_writeconfig("/opt/ibxd", "onboard_mount\n"); QThread::msleep(1000); + // Checking for updates + string_writeconfig("/opt/ibxd", "update_inkbox_restart"); + QThread::msleep(2500); quit_restart(); }