mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-27 22:57:11 -05:00
--no-legend
This commit is contained in:
parent
822cf64618
commit
83800fcb4f
@ -24,13 +24,13 @@ if ! test -r "$kernel"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if systemctl list-jobs | grep "poweroff.target" | grep -q "start"; then
|
if systemctl list-jobs --no-legend | grep "poweroff.target" | grep -q "start"; then
|
||||||
wiperamexit="yes"
|
wiperamexit="yes"
|
||||||
wiperamaction="poweroff"
|
wiperamaction="poweroff"
|
||||||
elif systemctl list-jobs | grep "reboot.target" | grep -q "start"; then
|
elif systemctl list-jobs --no-legend | grep "reboot.target" | grep -q "start"; then
|
||||||
wiperamexit="yes"
|
wiperamexit="yes"
|
||||||
wiperamaction="reboot"
|
wiperamaction="reboot"
|
||||||
elif systemctl list-jobs | grep "halt.target" | grep -q "start"; then
|
elif systemctl list-jobs --no-legend | grep "halt.target" | grep -q "start"; then
|
||||||
wiperamexit="yes"
|
wiperamexit="yes"
|
||||||
wiperamaction="halt"
|
wiperamaction="halt"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user