Replace dry_stop with something else

Unsolvable bug solved
This commit is contained in:
Nicolas Mailloux 2021-11-20 14:53:11 -05:00
parent cb71334865
commit b95d908774
2 changed files with 7 additions and 3 deletions

View file

@ -351,7 +351,7 @@ void encryptionManager::repackEncryptedStorage() {
std::string passphrase = global::encfs::passphrase.toStdString();
global::encfs::passphrase = "";
string_writeconfig("/external_root/run/encfs/encrypted_storage_repack_passphrase", passphrase);
string_writeconfig("/external_root/run/encfs_dry_stop", "true");
QFile::remove("/external_root/run/openrc/started/encfs");
string_writeconfig("/opt/ibxd", "encfs_restart\n");
bool exitStatus;
ui->activityWidget->setCurrentIndex(3);

View file

@ -70,9 +70,13 @@ void usbms_splash::usbms_launch()
if(global::usbms::koboxExportExtensions == true) {
string_writeconfig("/opt/ibxd", "kobox_extensions_storage_unmount\n");
}
else {
string_writeconfig("/opt/ibxd", "onboard_unmount\n");
if(checkconfig("/external_root/run/encfs_mounted") == true) {
string_writeconfig("/external_root/run/encfs_stop_cleanup", "true");
string_writeconfig("/opt/ibxd", "encfs_stop\n");
QThread::msleep(1500);
}
string_writeconfig("/opt/ibxd", "onboard_unmount\n");
QThread::msleep(500);
string_writeconfig("/opt/ibxd", "usbnet_stop\n");