fix setting subnet

This commit is contained in:
root 2015-01-25 19:05:51 +00:00
parent b98e61ce68
commit 5297860ba5

View File

@ -128,7 +128,7 @@ fi
set_mac "$INTERFACE" "$MAC_ADDRESS"
if [ -n "$SUBNET" ]; then
IFS=' ' read IP NETMASK <<< "SUBNET"
IFS=' ' read IP NETMASK <<< "$SUBNET"
[ -z "$IP" ] && die "no ip set in SUBNET"
[ -z "$NETMASK" ] && die "no netmask set in SUBNET"
set_ip "$INTERFACE" "$IP" "$NETMASK"