Check for available updates upon end of USBMS session

This commit is contained in:
Nicolas Mailloux 2021-12-18 17:55:32 -05:00
parent 852c1b4878
commit bd3930b42f

View file

@ -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();
}