Add patch.
This commit is contained in:
parent
2aafe3c1f3
commit
066961f271
13
diff
Normal file
13
diff
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
|
||||
index dd9fb5e..326eba1 100755
|
||||
--- a/sysconfig/network-scripts/ifup-eth
|
||||
+++ b/sysconfig/network-scripts/ifup-eth
|
||||
@@ -275,7 +275,7 @@ else
|
||||
# Set a default route.
|
||||
if [ "${DEFROUTE}" != "no" ] && [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${REALDEVICE}" ]; then
|
||||
# set up default gateway. replace if one already exists
|
||||
- if [ -n "${GATEWAY}" ] && [ "$(ipcalc --network ${GATEWAY} ${NETMASK} 2>/dev/null)" = "NETWORK=${NETWORK}" ]; then
|
||||
+ if [ -n "${GATEWAY}" ] && [ "$(ipcalc --network ${GATEWAY} ${netmask[0]} 2>/dev/null)" = "NETWORK=${NETWORK}" ]; then
|
||||
ip route replace default ${METRIC:+metric $METRIC} \
|
||||
via ${GATEWAY} ${WINDOW:+window $WINDOW} ${SRC} \
|
||||
${GATEWAYDEV:+dev $GATEWAYDEV}
|
Loading…
Reference in New Issue
Block a user