-
-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Allow more time for SD card mounting, required by some hardware.
- Loading branch information
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/usr/lib/hwsupport/block-device-event.sh b/usr/lib/hwsupport/block-device-event.sh | ||
index 132d94c..f3606b5 100755 | ||
--- a/usr/lib/hwsupport/block-device-event.sh | ||
+++ b/usr/lib/hwsupport/block-device-event.sh | ||
@@ -40,7 +40,7 @@ do_add() | ||
detected_us=$(make_dbus_udisks_call get-property data t "${drive}" Drive TimeMediaDetected) | ||
# The 5 seconds window is taken from the original GNOME fix that inspired this one | ||
# https://gitlab.gnome.org/GNOME/gvfs/-/commit/b4800b987b4a8423a52306c9aef35b3777464cc5 | ||
- if (( detected_us / 1000000 + 5 < current_time )); then | ||
+ if (( detected_us / 1000000 + 30 < current_time )); then | ||
echo "Skipping mounting /dev/${DEVBASE} because it has not been inserted recently" >&2 | ||
exit 0 | ||
fi |