From a079b6c306e8943dd58086c953762c5e5e0308b8 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 14 Jun 2013 07:24:59 +0000 Subject: [PATCH] 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 --- xCAT/postscripts/routeop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/routeop b/xCAT/postscripts/routeop index 25abd24c3..7260a033a 100755 --- a/xCAT/postscripts/routeop +++ b/xCAT/postscripts/routeop @@ -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"