Update wireguard-install.sh
This commit is contained in:
parent
51b2d151e0
commit
513f6de676
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,10 @@ done
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
echo -en "${GN} Network Connected: ${BL}$(hostname -I)${CL} "
|
echo -en "${GN} Network Connected: ${BL}$(hostname -I)${CL} "
|
||||||
echo -e "${CM}${CL} \r"
|
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'
|
OPTIONS_PATH='/options.conf'
|
||||||
cat >$OPTIONS_PATH <<'EOF'
|
cat >$OPTIONS_PATH <<'EOF'
|
||||||
IPv4dev=eth0
|
IPv4dev=eth0
|
||||||
|
|
Loading…
Reference in a new issue