1
0
mirror of synced 2026-01-26 11:42:00 +00:00

2006-05-23 15:51:15 by steve

YaY: Working network for static IP centos4 .. and more?
This commit is contained in:
steve
2006-05-23 15:51:15 +00:00
parent 5d00d281f9
commit b23eed9aee

View File

@@ -12,8 +12,16 @@ prefix=$1
if [[ "${rpmstrap}" ]]; then
echo "TODO : Sort out networking for non-Debian distribution ${dist}."
exit;
if [[ -e ${prefix}/etc/rc.d/rc.local ]]; then
echo "ifconfig eth0 ${ip} up" >> ${prefix}/etc/rc.d/rc.local
echo "route add default gw ${gateway}" >> ${prefix}/etc/rc.d/rc.local
exit
else
echo "TODO : Sort out networking for non-Debian distribution ${dist}."
exit;
fi
fi