2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-03 03:50:08 +00:00

routeop: inconditionally replace the default gateway

This commit is contained in:
Kilian Cavalotti 2018-07-27 14:29:23 -07:00
parent 9e161adf7c
commit e807651fae

View File

@ -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