From 513f6de676953bbf00be1ea5f64581cb22d7ffe7 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 18 Mar 2022 14:13:02 -0400 Subject: [PATCH] Update wireguard-install.sh --- setup/wireguard-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/wireguard-install.sh b/setup/wireguard-install.sh index 3524fef9..037a5eb6 100644 --- a/setup/wireguard-install.sh +++ b/setup/wireguard-install.sh @@ -48,6 +48,10 @@ done echo -e "${CM}${CL} \r" echo -en "${GN} Network Connected: ${BL}$(hostname -I)${CL} " echo -e "${CM}${CL} \r" +MAC=$(cat /sys/class/net/$(ip route show default | awk '/default/ {print $5}')/address) +echo -en "${GN} MAC Address: ${BL}${MAC}${CL} " +echo -e "${CM}${CL} \r" + OPTIONS_PATH='/options.conf' cat >$OPTIONS_PATH <<'EOF' IPv4dev=eth0