diff options
author | Olav Vitters <olav@vitters.nl> | 2020-07-25 23:29:28 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2020-07-25 23:29:28 +0200 |
commit | c815eaa7e1ef056d00c788bdfdc2051dfc0d0cb6 (patch) | |
tree | 49d71a88d1de11f9dd91805b1239864ec6063166 | |
parent | 96def123a3e73cc221b70229449aa2d2efcbb28a (diff) | |
download | initscripts-c815eaa7e1ef056d00c788bdfdc2051dfc0d0cb6.tar initscripts-c815eaa7e1ef056d00c788bdfdc2051dfc0d0cb6.tar.gz initscripts-c815eaa7e1ef056d00c788bdfdc2051dfc0d0cb6.tar.bz2 initscripts-c815eaa7e1ef056d00c788bdfdc2051dfc0d0cb6.tar.xz initscripts-c815eaa7e1ef056d00c788bdfdc2051dfc0d0cb6.zip |
ifup-eth: align one more line with upstreams better code
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 9a05eab2..a669371d 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -508,7 +508,7 @@ else fi # Add Zeroconf route. -if [ "${NOZEROCONF}" != "yes" -a "${ISALIAS}" = "no" -a "${REALDEVICE}" != "lo" ]; then +if [ -z "${NOZEROCONF}" -a "${ISALIAS}" = "no" -a "${REALDEVICE}" != "lo" ]; then ip route add 169.254.0.0/16 dev ${REALDEVICE} metric $((1000 + $(cat /sys/class/net/${REALDEVICE}/ifindex))) scope link fi |