From e807651fae0bc29cc6c343d4f119bd12db074f46 Mon Sep 17 00:00:00 2001 From: Kilian Cavalotti Date: Fri, 27 Jul 2018 14:29:23 -0700 Subject: [PATCH] routeop: inconditionally replace the default gateway --- xCAT/postscripts/routeop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/routeop b/xCAT/postscripts/routeop index 66c58808f..db022ca08 100755 --- a/xCAT/postscripts/routeop +++ b/xCAT/postscripts/routeop @@ -300,7 +300,7 @@ replace_persistent_route() if [ "$net" = "default" ]; then filename="/etc/sysconfig/network" route="GATEWAY=$gw" - routedest="$route" + routedest="GATEWAY=" fi if [ -f $filename ]; then egrep "^$routedest" $filename 2>&1 1>/dev/null