diff --git a/launch.sh b/launch.sh index ee3087d..8727f18 100755 --- a/launch.sh +++ b/launch.sh @@ -53,6 +53,11 @@ rcctl restart dhcpd vmctl reload sleep 10 +echo -n "Hostname: " ; grep -A7 ${1} /etc/dhcpd.conf | awk '/host-name/ {print $3}' | tr -d ';' | tr -d '"' +echo -n "IPv4: " ; grep -A7 ${1} /etc/dhcpd.conf | awk '/fixed-address / {print $2}' | tr -d ';' +echo -n "IPv6: " ; grep -A7 ${1} /etc/dhcpd.conf | awk '/fixed-address-ipv6/ {print $2}' | tr -d ';' +echo + mkfifo -m 600 /tmp/pipe_${1} install -g mischa -m 600 -o mischa /dev/null ${LOGS}/${1}.log