From 0bcd507a6fde0ec7a31356fed4aeaab4612eded2 Mon Sep 17 00:00:00 2001 From: "bbruns@gmail.com" Date: Sat, 25 Sep 2010 02:49:43 +0000 Subject: [PATCH] Moving variable PROC_NET_IPV4 to static includes --- include/functions | 1 - include/static | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/functions b/include/functions index 07ffaa4..2f9492f 100644 --- a/include/functions +++ b/include/functions @@ -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 diff --git a/include/static b/include/static index 2426725..8f0558e 100644 --- a/include/static +++ b/include/static @@ -44,4 +44,7 @@ GREY="\E[37m" DEFAULT_COLOR="\E[39m" # Module names that we may need to load -MOD_U32="xt_u32" \ No newline at end of file +MOD_U32="xt_u32" + +# Location of the ipv4 network conf in proc +PROC_NET_IPV4="/proc/sys/net/ipv4/conf" \ No newline at end of file