Create if-up.d directory

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:53 -04:00
parent 21ffbf571f
commit abf4115f15
1 changed files with 1 additions and 0 deletions

View File

@ -290,6 +290,7 @@ echo "${target_hostname}" | tee ${target}/etc/hostname >&2
echo "done."
echo -n "Setting /etc/issue generator... "
mkdir -p ${target}/etc/network/if-up.d >&2
echo -e "#!/bin/sh
IP=\"\$( ip -4 addr show dev ${target_interface} | grep inet | awk '{ print \$2 }' | head -1 )\"
echo \"Debian GNU/Linux 10 \\\\n \\\\l