Fix output of issue-gen
This commit is contained in:
parent
f45c1d2ffb
commit
2ecf2258d9
|
@ -272,11 +272,9 @@ echo "${target_hostname}" | tee ${target}/etc/hostname >&2
|
|||
echo "done."
|
||||
|
||||
echo -n "Setting /etc/issue generator... "
|
||||
cat <<EOF >${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."
|
||||
|
||||
|
|
Loading…
Reference in New Issue