1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-02-12 11:21:56 +00:00

Update to latest MPTCP kernel

This commit is contained in:
Ycarus (Yannick Chabanois) 2018-10-26 13:43:57 +00:00
parent 683763e694
commit 8b15c8a4f8

View file

@ -8,8 +8,8 @@ MLVPN=${MLVPN:-no}
OPENVPN=${OPENVPN:-no}
INTERFACE=${INTERFACE:-$(ip -o -4 route show to default | awk '{print $5}' | tr -d "\n")}
DEBIAN_VERSION=$(sed 's/\..*//' /etc/debian_version)
KERNEL_VERSION="4.14.73-mptcp-312723f"
OMR_VERSION="0.56"
KERNEL_VERSION="4.14.77-mptcp-b3b861b"
OMR_VERSION="0.58"
set -e
umask 0022
@ -25,6 +25,9 @@ fi
if grep --quiet 'OpenMPTCProuter VPS' /etc/motd ; then
update="1"
fi
if grep --quiet 'OpenMPTCProuter VPS' /etc/motd.head ; then
update="1"
fi
# Install mptcp kernel and shadowsocks
apt-get update
apt-get -y install dirmngr patch
@ -259,18 +262,18 @@ else
fi
# Add OpenMPTCProuter VPS script version to /etc/motd
if [ -f /etc/motd ]; then
if grep --quiet 'OpenMPTCProuter VPS' /etc/motd; then
sed -i 's:< OpenMPTCProuter VPS [0-9]*\.[0-9]* >:< OpenMPCTProuter VPS $OMR_VERSION >:' /etc/motd
else
echo '< OpenMPTCProuter VPS $OMR_VERSION >' >> /etc/motd
fi
elif [ -f /etc/motd.head ]; then
if [ -f /etc/motd.head ]; then
if grep --quiet 'OpenMPTCProuter VPS' /etc/motd.head; then
sed -i 's:< OpenMPTCProuter VPS [0-9]*\.[0-9]* >:< OpenMPCTProuter VPS $OMR_VERSION >:' /etc/motd.head
else
echo '< OpenMPTCProuter VPS $OMR_VERSION >' >> /etc/motd.head
fi
elif [ -f /etc/motd ]; then
if grep --quiet 'OpenMPTCProuter VPS' /etc/motd; then
sed -i 's:< OpenMPTCProuter VPS [0-9]*\.[0-9]* >:< OpenMPCTProuter VPS $OMR_VERSION >:' /etc/motd
else
echo '< OpenMPTCProuter VPS $OMR_VERSION >' >> /etc/motd
fi
fi
if [ "$update" = "0" ]; then