Update checkForSystemdUnit()
This commit is contained in:
parent
bfe26310ac
commit
89017dd3c6
|
@ -521,7 +521,7 @@ checkForSystemdUnit() {
|
||||||
systemctl is-active --quiet "${2}" && return
|
systemctl is-active --quiet "${2}" && return
|
||||||
fi
|
fi
|
||||||
trapBackup=$(trap)
|
trapBackup=$(trap)
|
||||||
trap 'systemctl stop ${2}; forceExit=true' INT QUIT TERM
|
trap 'systemctl stop ${2}; forceExit=true' INT
|
||||||
forceExit=false
|
forceExit=false
|
||||||
calcAndRun dialog --infobox "\"\nWaiting for the ${1} to finish. Please wait.\"" 5 WIDTH
|
calcAndRun dialog --infobox "\"\nWaiting for the ${1} to finish. Please wait.\"" 5 WIDTH
|
||||||
if [ "${3}" = "oneshot" ]; then
|
if [ "${3}" = "oneshot" ]; then
|
||||||
|
|
Loading…
Reference in New Issue