This commit is contained in:
volth 2018-09-10 02:39:15 +00:00 committed by GitHub
parent 502b37ae63
commit 16edfb22b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,10 +12,9 @@ let
''
#! /bin/sh
if [ "$1" = bound ]; then
ip address add "$ip/$mask" dev "$interface"
if [ -n "$mtu" ]; then
ip address add "$ip/$mask" dev "$interface" mtu "$mtu"
else
ip address add "$ip/$mask" dev "$interface"
ip link set mtu "$mtu" dev "$interface"
fi
if [ -n "$staticroutes" ]; then
echo "$staticroutes" \