소스 검색

Update wireguard-install.sh

tteckster 3 년 전
부모
커밋
513f6de676
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      setup/wireguard-install.sh

+ 4 - 0
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