Moving variable PROC_NET_IPV4 to static includes

master
bbruns@gmail.com 2010-09-25 02:49:43 +00:00
parent ae76016f74
commit 0bcd507a6f
2 changed files with 4 additions and 2 deletions

View File

@ -145,7 +145,6 @@ function apply_ipv4_hack {
# I have things going through specific wires for a reason. This fixes
# that and makes it behave as expected.
display_c PURPLE " MULTI-NIC-ARP-LOCK"
PROC_NET_IPV4="/proc/sys/net/ipv4/conf"
for i in default all; do
if [ -w ${PROC_NET_IPV4}/$i/arp_ignore ]; then
echo "1" > ${PROC_NET_IPV4}/$i/arp_ignore

View File

@ -44,4 +44,7 @@ GREY="\E[37m"
DEFAULT_COLOR="\E[39m"
# Module names that we may need to load
MOD_U32="xt_u32"
MOD_U32="xt_u32"
# Location of the ipv4 network conf in proc
PROC_NET_IPV4="/proc/sys/net/ipv4/conf"