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