From 804211c1014fa04678820c09311ba2be2e6865c1 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 21 Oct 2018 00:20:54 -0500 Subject: [PATCH] Cleanup --- docs/ikev2-howto-zh.md | 2 +- docs/ikev2-howto.md | 2 +- extras/vpnupgrade.sh | 4 ++-- vpnsetup.sh | 4 ++-- vpnsetup_centos.sh | 1 + 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/ikev2-howto-zh.md b/docs/ikev2-howto-zh.md index dd79ba3..2f87c9b 100644 --- a/docs/ikev2-howto-zh.md +++ b/docs/ikev2-howto-zh.md @@ -25,7 +25,7 @@ Libreswan 支持通过使用 RSA 签名算法的 X.509 Machine Certificates 来 ```bash $ PUBLIC_IP=$(wget -t 3 -T 15 -qO- http://ipv4.icanhazip.com) - $ echo "$PUBLIC_IP" + $ printf '%s' "$PUBLIC_IP" (检查显示的公共 IP) ``` diff --git a/docs/ikev2-howto.md b/docs/ikev2-howto.md index 787ce74..8550699 100644 --- a/docs/ikev2-howto.md +++ b/docs/ikev2-howto.md @@ -25,7 +25,7 @@ Before continuing, make sure you have successfully /dev/null systemctl enable iptables fail2ban 2>/dev/null fi + if ! grep -qs "hwdsl2 VPN script" /etc/rc.local; then if [ -f /etc/rc.local ]; then conf_bk "/etc/rc.local"