diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-05-30 17:03:25 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-05-30 17:03:25 -0400 |
commit | ce241a493fdb408dcc505145712cc5f6a8254706 (patch) | |
tree | 4a46531a49c98e8f3818e882e69d7a4c7b4192d3 /src | |
parent | 03c3c520402db803cffd5abc7ea0c55fba95fbb3 (diff) | |
download | systemd-ce241a493fdb408dcc505145712cc5f6a8254706.tar.gz |
sulogin-shell: avoid heredocs
They require a writable /tmp dir (in the bash implementation).
Let's use echo, and not 'echo -e' since that doesn't seem to be completely
portable.
Fixes #6052.
Diffstat (limited to 'src')
-rwxr-xr-x | src/sulogin-shell/systemd-sulogin-shell.in | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/sulogin-shell/systemd-sulogin-shell.in b/src/sulogin-shell/systemd-sulogin-shell.in index d4f32af5f9..103f841a57 100755 --- a/src/sulogin-shell/systemd-sulogin-shell.in +++ b/src/sulogin-shell/systemd-sulogin-shell.in @@ -4,11 +4,9 @@ if [ -x /bin/plymouth ]; then /bin/plymouth --wait quit fi -cat <<EOF -You are in $1 mode. After logging in, type "journalctl -xb" to view -system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to -boot into default mode. -EOF +echo "You are in $1 mode. After logging in, type \"journalctl -xb\" to view" +echo "system logs, \"systemctl reboot\" to reboot, \"systemctl default\" or ^D to boot" +echo "into default mode." @SULOGIN@ @SYSTEMCTL@ --job-mode=fail --no-block default |