Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
7c6b6de9
Commit
7c6b6de9
authored
Jun 25, 2020
by
boyska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX
#16787
shutdown on resume if usb stick removed
parent
73baaec7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
config/chroot_local-includes/usr/local/lib/udev-watchdog-wrapper
...chroot_local-includes/usr/local/lib/udev-watchdog-wrapper
+7
-0
No files found.
config/chroot_local-includes/usr/local/lib/udev-watchdog-wrapper
View file @
7c6b6de9
...
...
@@ -62,6 +62,13 @@ do_stop() {
BOOT_DEVICE
=
$(
boot_device
)
# If the boot_device is not present, shutdown immediately
# This typically happens when the boot device is removed _during_ a suspend
if
test
-z
"
$BOOT_DEVICE
"
||
!
test
-e
"
$BOOT_DEVICE
"
;
then
do_stop
fi
# Assign to QUERY_SELECTOR an option that can be passed as a query selector
# to udevadm info --query commands.
if
using_fromiso
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment