fix setting subnet
This commit is contained in:
parent
b98e61ce68
commit
5297860ba5
2
tinc-up
2
tinc-up
@ -128,7 +128,7 @@ fi
|
|||||||
set_mac "$INTERFACE" "$MAC_ADDRESS"
|
set_mac "$INTERFACE" "$MAC_ADDRESS"
|
||||||
|
|
||||||
if [ -n "$SUBNET" ]; then
|
if [ -n "$SUBNET" ]; then
|
||||||
IFS=' ' read IP NETMASK <<< "SUBNET"
|
IFS=' ' read IP NETMASK <<< "$SUBNET"
|
||||||
[ -z "$IP" ] && die "no ip set in SUBNET"
|
[ -z "$IP" ] && die "no ip set in SUBNET"
|
||||||
[ -z "$NETMASK" ] && die "no netmask set in SUBNET"
|
[ -z "$NETMASK" ] && die "no netmask set in SUBNET"
|
||||||
set_ip "$INTERFACE" "$IP" "$NETMASK"
|
set_ip "$INTERFACE" "$IP" "$NETMASK"
|
||||||
|
Loading…
Reference in New Issue
Block a user