Hello,
I've fixed the gentoo-add_ip.sh to work again with baselayout-vserver-1.11.14-r3.
Also I've fixed a hardcoded venet0 where it wasn't necessary.
Here is a diff:
--- gentoo-add_ip.sh.orig 2006-03-01 09:46:27.806261592 +0100
+++ gentoo-add_ip.sh 2006-03-01 09:48:43.808586096 +0100
@@ -37,7 +37,7 @@
rc-update del net.eth0 &>/dev/null
ln -sf /etc/init.d/net.lo /etc/init.d/net.${VENET_DEV}
rc-update add net.lo boot &>/dev/null
- rc-update add net.venet0 default &>/dev/null
+ rc-update add net.${VENET_DEV} default &>/dev/null
if ! grep -qe "^config_eth" ${IFCFG} 2>/dev/null; then
return 0
fi
@@ -54,7 +54,7 @@
fix_net
put_param3 ${IFCFG} "config_${VENET_DEV}" ""
# add fake route
- put_param3 ${IFCFG} "routes_${VENET_DEV}" "-net ${FAKEGATEWAYNET}/24"
+ put_param3 ${IFCFG} "routes_${VENET_DEV}" "-net ${FAKEGATEWAYNET} netmask 255.255.255.255 dev ${VENET_DEV}"
add_param3 ${IFCFG} "routes_${VENET_DEV}" "default via ${FAKEGATEWAY}"
# Set up /etc/hosts
if [ ! -f ${HOSTFILE} ]; then
At the moment, I'm trying to get an gentoo-template for productivity to work.
I'm in the last steps. There is only one problem left with disk quota.
HAND,
Steffen