summaryrefslogtreecommitdiff
path: root/src/sulogin-shell
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-30 17:03:25 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-30 17:03:25 -0400
commitce241a493fdb408dcc505145712cc5f6a8254706 (patch)
tree4a46531a49c98e8f3818e882e69d7a4c7b4192d3 /src/sulogin-shell
parent03c3c520402db803cffd5abc7ea0c55fba95fbb3 (diff)
downloadsystemd-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/sulogin-shell')
-rwxr-xr-xsrc/sulogin-shell/systemd-sulogin-shell.in8
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