--- recepies/lxc/ve2lxc.sh 2009/06/15 19:19:03 110 +++ recepies/lxc/ve2lxc.sh 2009/06/15 20:22:04 111 @@ -5,7 +5,8 @@ dir=$1 hostname=ve2lxc ip=$2 -netmask=255.255.254.0 +netmask=`grep netmask /etc/network/interfaces | head -1 | sed 's/^.*netmask *//'` +gateway=`grep gateway /etc/network/interfaces | head -1 | sed 's/^.*gateway *//'` test -z "$ip" && ip=10.60.0.253 @@ -45,6 +46,7 @@ iface eth0 inet static address $ip netmask $netmask + gateway $gateway __interfaces__