2006-06-30 10:09:56 by steve
Bytemark: Add point-to-point setting.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user