mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Change command to get default interface
This commit is contained in:
parent
91079cde73
commit
2cc57519b6
1 changed files with 2 additions and 2 deletions
|
@ -6,10 +6,10 @@ NBCPU=${NBCPU:-$(grep -c '^processor' /proc/cpuinfo | tr -d "\n")}
|
||||||
OBFS=${OBFS:-no}
|
OBFS=${OBFS:-no}
|
||||||
MLVPN=${MLVPN:-no}
|
MLVPN=${MLVPN:-no}
|
||||||
OPENVPN=${OPENVPN:-no}
|
OPENVPN=${OPENVPN:-no}
|
||||||
INTERFACE=${INTERFACE:-$(ip -o -4 route show to default | awk '{print $5}' | tr -d "\n")}
|
INTERFACE=${INTERFACE:-$(ip -o -4 route show to default | grep -Po '(?<=dev )(\S+)' | tr -d "\n")}
|
||||||
DEBIAN_VERSION=$(sed 's/\..*//' /etc/debian_version)
|
DEBIAN_VERSION=$(sed 's/\..*//' /etc/debian_version)
|
||||||
KERNEL_VERSION="4.14.77-mptcp-b3b861b"
|
KERNEL_VERSION="4.14.77-mptcp-b3b861b"
|
||||||
OMR_VERSION="0.61"
|
OMR_VERSION="0.62"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
umask 0022
|
umask 0022
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue