added IP info to launch.sh, easier for PTR records
This commit is contained in:
parent
d82c089e72
commit
755db95314
|
@ -53,6 +53,11 @@ rcctl restart dhcpd
|
||||||
vmctl reload
|
vmctl reload
|
||||||
sleep 10
|
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}
|
mkfifo -m 600 /tmp/pipe_${1}
|
||||||
install -g mischa -m 600 -o mischa /dev/null ${LOGS}/${1}.log
|
install -g mischa -m 600 -o mischa /dev/null ${LOGS}/${1}.log
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue