mirror of
https://github.com/systemd/systemd
synced 2024-09-16 06:43:18 +00: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
|