mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
11 lines
146 B
Bash
11 lines
146 B
Bash
|
#!/bin/bash
|
||
|
set -ex
|
||
|
set -o pipefail
|
||
|
|
||
|
if journalctl -b | grep -e '\.device: Changed plugged -> dead'; then
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
echo OK > /testok
|
||
|
exit 0
|