From 2ecf2258d93a7b1c6403fbd0d091b5f943e268ae Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:53 -0400 Subject: [PATCH] Fix output of issue-gen --- install.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index e8b603f..06e92e3 100755 --- a/install.sh +++ b/install.sh @@ -272,11 +272,9 @@ echo "${target_hostname}" | tee ${target}/etc/hostname >&2 echo "done." echo -n "Setting /etc/issue generator... " -cat <${target}/etc/if-up.d/issue-gen -#!/bin/sh -IP="\$( ip addr show dev ${target_interface} | grep 'inet' | awk '{ print \$2 }' )" -echo -e "Debian GNU/Linux 10 \\n \\l\n\nPrimary interface IP address: \$IP\n" > /etc/issue -EOF +echo -e "#!/bin/sh +IP="\$( ip addr show dev ${target_interface} | grep inet | awk \'{ print \$2 }\' )" +echo -e \"Debian GNU/Linux 10 \\n \\l\n\nPrimary interface IP address: \$IP\n\" > /etc/issue" | tee ${target}/etc/if-up.d/issue-gen >&2 chmod +x ${target}/etc/if-up.d/issue-gen 1>&2 echo "done."