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:
parent
9e161adf7c
commit
e807651fae
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user