mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-14 09:49:08 +07:00
--no-legend
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user