makeroutes support on stateless debian/ubuntu nodes

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

View File

@ -210,7 +210,7 @@ add_persistent_route()
v6flag=0
#on debian/ubuntu need the network device name
if [ ! $ifname ];then
ifname=`netstat -nr | grep "$net" | awk '{print $8}'`
ifname=`netstat -nr | grep "$net" | awk '{print $8}' | head -1`
fi
filename="/etc/network/interfaces.d/$ifname"