Check if systemd is running
This commit is contained in:
parent
b53d4da471
commit
286f3b6f65
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ usermotd () {
|
|||
fi
|
||||
uptime
|
||||
echo "LANG=$LANG"
|
||||
if [ -x /usr/bin/timedatectl ]
|
||||
if [ -x /usr/bin/timedatectl ] && [ "x$(systemctl is-system-running)" != "xoffline" ]
|
||||
then
|
||||
timedatectl show --property=Timezone | sed 's/Timezone=/TZ=/'
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue