From 7d3bd8633d3aee9c7777162d69bd81485cc80acb Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 30 Jun 2006 10:09:56 +0000 Subject: [PATCH] 2006-06-30 10:09:56 by steve Bytemark: Add point-to-point setting. --- hooks/gentoo/40-setup-networking | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hooks/gentoo/40-setup-networking b/hooks/gentoo/40-setup-networking index 143ad78..fa337d2 100755 --- a/hooks/gentoo/40-setup-networking +++ b/hooks/gentoo/40-setup-networking @@ -57,6 +57,16 @@ E_O_DHCP # function setupStaticNetworking { + # + # if $p2p is set then add a "pointtopoint" setting. + # + point=''; + if [ ! -z "${p2p}" ]; then + point="pointtopoint ${p2p}" + else + point='' + fi + # # We have a static IP address # @@ -64,7 +74,7 @@ function setupStaticNetworking # # First ethernet interface # -config_eth0=( "${ip1} netmask ${netmask}" ) +config_eth0=( "${ip1} ${point} netmask ${netmask}" ) routes_eth0=( "default via ${gateway}" ) E_O_STATIC