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"