From fcb8aafa5977aa8feee933cdd9f9f457fcd2ab21 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 20 Mar 2022 11:45:53 -0400 Subject: [PATCH] Update wireguard.sh --- ct/wireguard.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ct/wireguard.sh b/ct/wireguard.sh index bb31d6e2..e6774094 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -236,9 +236,14 @@ if [ "$STORAGE_TYPE" == "zfspool" ]; then warn "Some addons may not work due to ZFS not supporting 'fallocate'." fi if [ "$DHCP" == "1" ]; then -pct config $CTID | grep -i hwaddr +MAC=$(pct config $CTID \ +| grep -i hwaddr \ +| awk '{print substr($2, 31, length($3) 17 ) }') \ + +echo -e "MAC Address ${BL}$MAC${CL}" + dhcp_reservation(){ - printf "Please set DHCP Reservation and press Enter." + printf "Please set DHCP reservation and press Enter." read } dhcp_reservation