diff options
author | Benjamin Coddington <bcodding@uvm.edu> | 2012-04-23 11:19:43 -0400 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2012-08-07 14:42:45 +0200 |
commit | 06cdd94e805e1c6d0faf3e9ece0dc71f301831ef (patch) | |
tree | 25563e60fd4126a9838781d5553bbe40db7d785e /sysconfig/network-scripts/network-functions | |
parent | eb8425399e577b6d0a7521dd09dfafab975932d2 (diff) | |
download | initscripts-06cdd94e805e1c6d0faf3e9ece0dc71f301831ef.tar initscripts-06cdd94e805e1c6d0faf3e9ece0dc71f301831ef.tar.gz initscripts-06cdd94e805e1c6d0faf3e9ece0dc71f301831ef.tar.bz2 initscripts-06cdd94e805e1c6d0faf3e9ece0dc71f301831ef.tar.xz initscripts-06cdd94e805e1c6d0faf3e9ece0dc71f301831ef.zip |
Allow duplicate address dectection to be disabled
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 81e47a20..5b2f30ac 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -201,6 +201,7 @@ expand_config () prefix[$i]=$(eval echo '$'PREFIX$idx) netmask[$i]=$(eval echo '$'NETMASK$idx) broadcast[$i]=$(eval echo '$'BROADCAST$idx) + arpcheck[$i]=$(eval echo '$'ARPCHECK$idx) if [ "${prefix[$i]}x" != "x" ]; then val=$(/bin/ipcalc --netmask "${ipaddr[$i]}/${prefix[$i]}") @@ -221,6 +222,12 @@ expand_config () val=$(/bin/ipcalc --broadcast ${ipaddr[$i]} ${netmask[$i]}) broadcast[$i]=${val##BROADCAST=} fi + + if [ "${arpcheck[$i]}x" != "x" ]; then + arpcheck[$i]=${arpcheck[$i]##ARPCHECK=} + arpcheck[$i]=${arpcheck[$i],,*} + fi + i=$((i+1)) done |