Replace journalctl with systemctl
This commit is contained in:
parent
f3329f3fa7
commit
2ed7bcf95a
13
install.sh
13
install.sh
|
@ -447,15 +447,12 @@ getDotfiles() {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkForSystemdUnits() {
|
checkForSystemdUnits() {
|
||||||
trap 'systemctl stop reflector; forceExit=true' INT
|
trap 'systemctl stop reflector' INT
|
||||||
calcHeightAndRun "whiptail --infobox \"Waiting for systemd units to finish ('reflector.service'). This may take a while, please wait.\" HEIGTH 61"
|
calcHeightAndRun "whiptail --infobox \"Waiting for systemd units to finish. In particular 'reflector.service' is the one that will take the longest. If you want to stop it, type Ctrl+C (note that the script will ask you later if you want to update the mirrors, so don't worry).\" HEIGTH 61"
|
||||||
journalctl --sync
|
systemctl is-active --quiet graphical.target
|
||||||
result=$(journalctl -b -q -r -g "Graphical" | wc -l)
|
while [ $? -ne 0 ]; do
|
||||||
forceExit=false
|
|
||||||
while [ $result -lt 2 ] && [ $forceExit = false ]; do
|
|
||||||
sleep 1
|
sleep 1
|
||||||
journalctl --sync
|
systemctl is-active --quiet graphical.target
|
||||||
result=$(journalctl -b -q -r -g "Graphical" | wc -l)
|
|
||||||
done
|
done
|
||||||
trap - INT
|
trap - INT
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue