Propose a dead simple way to show systemd configuration

while the local systemd version is too low to support `cat-config` function.
pull/166/head
IceCodeNew 2020-10-13 15:50:43 +08:00
parent 7fef216fd6
commit 7b5fe33c58
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ systemd_cat_config() {
if systemd-analyze --help | grep -qw 'cat-config'; then
systemd-analyze --no-pager cat-config "$@"
else
echo
cat "$@" "$1".d/*
echo "${red}warning: ${green}The systemd version on the current operating system is too low."
echo "${red}warning: ${green}Please consider to upgrade the systemd or the operating system.${reset}"
fi