makeroutes support on stateless debian/ubuntu nodes

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16627 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2013-06-14 07:01:59 +00:00
parent d1230bcf16
commit 7e10342919

View File

@ -214,6 +214,10 @@ add_persistent_route()
fi
filename="/etc/network/interfaces.d/$ifname"
if [ ! -f $filename ];then
echo "auto $ifname" > $filename
echo "iface $ifname inet dhcp" >> $filename
fi
echo $net | grep : 2>&1 1>/dev/null
#ipv6
if [ $? -eq 0 ];then
@ -445,7 +449,9 @@ if [ "$op" = "add" ]; then
if [ $code -ne 0 ]; then
logger -t xCAT -p local4.err "$cmd\nerror code=$code, result=$result."
echo " error code=$code, result=$result."
#exit 1;
if [ -f "/etc/debian_version" ];then
exit 1;
fi
fi
else
#ipv6