From 19cd9c4766904ebcc55c276ed4f0087b2e4d40bb Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 8 Apr 2013 07:29:14 +0000 Subject: [PATCH] fix for bug 3470: remove the ifname from the /etc/sysconfig/network/routes git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15866 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/routeop | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/routeop b/xCAT/postscripts/routeop index 9193af7b4..021b6d151 100755 --- a/xCAT/postscripts/routeop +++ b/xCAT/postscripts/routeop @@ -223,8 +223,13 @@ rm_persistent_route() route="$net/$mask $gw - -"; route1="$net\/$mask $gw - -"; else - route="$net $gw $mask"; - route1="$net $gw $mask"; + if [ -n "$ifname" ]; then + route="$net $gw $mask $ifname"; + route1="$net $gw $mask $ifname"; + else + route="$net $gw $mask"; + route1="$net $gw $mask"; + fi fi if [ -f $filename ]; then grep "$route" $filename 2>&1 1>/dev/null