Browse Source

Update ipv4-ipv6.sh

molon 4 years ago
parent
commit
94d69ef2f0
1 changed files with 2 additions and 4 deletions
  1. 2 4
      scripts/ipv4-ipv6.sh

+ 2 - 4
scripts/ipv4-ipv6.sh

@@ -21,7 +21,7 @@ done
 
 
 while [ ! -n "$STATIC" ]; do
 while [ ! -n "$STATIC" ]; do
     eecho "Do you want to use static mode: (yes/no, no as default)"
     eecho "Do you want to use static mode: (yes/no, no as default)"
-    read STATIC;
+    read STATIC
     if [[ $STATIC == "" ]] || [[ $STATIC == "n" ]]; then
     if [[ $STATIC == "" ]] || [[ $STATIC == "n" ]]; then
         STATIC="no"
         STATIC="no"
     else
     else
@@ -220,7 +220,7 @@ chmod +x ${WORKDIR}/boot_*.sh
 
 
 
 
 # change ulimit for too many open files
 # change ulimit for too many open files
-grep -qxF '* soft nofile 1024000' /etc/security/limits.conf || cat >>/etc/security/limits.conf << "EOF" 
+grep -qxF '* soft nofile 1024000' /etc/security/limits.conf || cat >>/etc/security/limits.conf <<EOF 
 
 
 * soft nofile 1024000
 * soft nofile 1024000
 * hard nofile 1024000
 * hard nofile 1024000
@@ -243,5 +243,3 @@ URL=$(curl -s --upload-file proxy.zip http://transfer.sh/smile.zip)
 eecho "Proxy is ready! Format IP:PORT:LOGIN:PASS"
 eecho "Proxy is ready! Format IP:PORT:LOGIN:PASS"
 eecho "Download zip archive from: ${URL}"
 eecho "Download zip archive from: ${URL}"
 eecho "Password: ${PROXYPASS}"
 eecho "Password: ${PROXYPASS}"
-
-