mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 04:25:45 +00:00
Dont fail when naming the routing table
This commit is contained in:
parent
cf19225cbd
commit
ef051c975c
1 changed files with 3 additions and 3 deletions
|
|
@ -576,11 +576,11 @@ EOF
|
||||||
set -e
|
set -e
|
||||||
id -u 785 || useradd --no-create-home --uid 785 --system v2rayn-core
|
id -u 785 || useradd --no-create-home --uid 785 --system v2rayn-core
|
||||||
getent group v2rayn || groupadd v2rayn # Users in this group are allowed to use TUN
|
getent group v2rayn || groupadd v2rayn # Users in this group are allowed to use TUN
|
||||||
id -u 1000 && gpasswd -a $(id -un 1000) v2rayn
|
id -u 1000 && gpasswd -a $(id -un 1000) v2rayn
|
||||||
if [ ! -d /etc/iproute2/rt_tables ]; then
|
if [ ! -d /etc/iproute2/rt_tables ]; then
|
||||||
mkdir -p /etc/iproute2/
|
mkdir -p /etc/iproute2/ || true
|
||||||
fi
|
fi
|
||||||
grep '^6418 ' /etc/iproute2/rt_tables || echo '6418 v2rayn-tun' >> /etc/iproute2/rt_tables
|
grep '^6418 ' /etc/iproute2/rt_tables || echo '6418 v2rayn-tun' >> /etc/iproute2/rt_tables || true
|
||||||
exit 0
|
exit 0
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue