mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
084575ff91
This should make the scripts more robust.
11 lines
162 B
Bash
Executable File
11 lines
162 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
if journalctl -b -t systemd --grep '\.device: Changed plugged -> dead'; then
|
|
exit 1
|
|
fi
|
|
|
|
echo OK >/testok
|
|
exit 0
|