Skip to content

Commit b95d908

Browse files
committed
Replace dry_stop with something else
Unsolvable bug solved
1 parent cb71334 commit b95d908

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

encryptionmanager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ void encryptionManager::repackEncryptedStorage() {
351351
std::string passphrase = global::encfs::passphrase.toStdString();
352352
global::encfs::passphrase = "";
353353
string_writeconfig("/external_root/run/encfs/encrypted_storage_repack_passphrase", passphrase);
354-
string_writeconfig("/external_root/run/encfs_dry_stop", "true");
354+
QFile::remove("/external_root/run/openrc/started/encfs");
355355
string_writeconfig("/opt/ibxd", "encfs_restart\n");
356356
bool exitStatus;
357357
ui->activityWidget->setCurrentIndex(3);

usbms_splash.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,13 @@ void usbms_splash::usbms_launch()
7070
if(global::usbms::koboxExportExtensions == true) {
7171
string_writeconfig("/opt/ibxd", "kobox_extensions_storage_unmount\n");
7272
}
73-
else {
74-
string_writeconfig("/opt/ibxd", "onboard_unmount\n");
73+
if(checkconfig("/external_root/run/encfs_mounted") == true) {
74+
string_writeconfig("/external_root/run/encfs_stop_cleanup", "true");
75+
string_writeconfig("/opt/ibxd", "encfs_stop\n");
76+
QThread::msleep(1500);
7577
}
78+
79+
string_writeconfig("/opt/ibxd", "onboard_unmount\n");
7680
QThread::msleep(500);
7781

7882
string_writeconfig("/opt/ibxd", "usbnet_stop\n");

0 commit comments

Comments
 (0)