Correct syntax error in issue-gen output

This commit is contained in:
Joshua Boniface 2019-06-14 13:55:31 -04:00
parent 076d85b79b
commit 51cec4dbfe
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ echo "done."
echo -n "Setting /etc/issue generator... " echo -n "Setting /etc/issue generator... "
echo -e "#!/bin/sh echo -e "#!/bin/sh
IP="\$( ip addr show dev ${target_interface} | grep inet | awk \'{ print \$2 }\' )" 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 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 chmod +x ${target}/etc/if-up.d/issue-gen 1>&2
echo "done." echo "done."