diff --git a/vpnsetup.sh b/vpnsetup.sh index d61db85..c6335be 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -335,30 +335,32 @@ bigecho "Updating sysctl settings..." if ! grep -qs "hwdsl2 VPN script" /etc/sysctl.conf; then conf_bk "/etc/sysctl.conf" + if [ "$(getconf LONG_BIT)" = "64" ]; then + SHM_MAX=68719476736 + SHM_ALL=4294967296 + else + SHM_MAX=4294967295 + SHM_ALL=268435456 + fi cat >> /etc/sysctl.conf <> /etc/sysctl.conf <