Commit 9a65fed5 authored by Tails developers's avatar Tails developers
Browse files

Convert udev-watchdog-wrapper to "set -e".

parent 75945b5f
set -e
### Helper functions
# For whatever reason, the initscript that calls us sets a pretty scarse $PATH
......@@ -24,9 +26,9 @@ loop_backing_file() {
# First clean the screen, then brutally shutdown the machine.
do_stop() {
/etc/init.d/gdm3 stop 2>&1 >/dev/null
/etc/init.d/kexec-load stop 2>&1 >/dev/null
/etc/init.d/tails-kexec stop 2>&1 >/dev/null
/etc/init.d/gdm3 stop 2>&1 >/dev/null || true
/etc/init.d/kexec-load stop 2>&1 >/dev/null || true
/etc/init.d/tails-kexec stop 2>&1 >/dev/null || true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment