mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +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
|