aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-07-25 23:08:21 +0200
committerOlav Vitters <olav@vitters.nl>2020-07-25 23:08:21 +0200
commit38927c67e2607a190f207cd271aa3787a0a3063e (patch)
tree6b41692c2991dcacce7d69211eea3e35cae4a856
parent4a4ab2a628b5766024d223e94b64aeda97f73975 (diff)
downloadinitscripts-38927c67e2607a190f207cd271aa3787a0a3063e.tar
initscripts-38927c67e2607a190f207cd271aa3787a0a3063e.tar.gz
initscripts-38927c67e2607a190f207cd271aa3787a0a3063e.tar.bz2
initscripts-38927c67e2607a190f207cd271aa3787a0a3063e.tar.xz
initscripts-38927c67e2607a190f207cd271aa3787a0a3063e.zip
ifup-eth: minimize changes with upstream for cases where upstream code is better
-rwxr-xr-xsysconfig/network-scripts/ifup-eth6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 62a77126..ff7166de 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -371,7 +371,7 @@ fi
if [ -n "${DYNCONFIG}" ]; then
echo
echo -n $"Determining IP information for ${DEVICE}..."
- if [[ "${PERSISTENT_DHCLIENT}" != [yY1]* ]] && check_link_down ${DEVICE}; then
+ if ! is_true "${PERSISTENT_DHCLIENT}" && check_link_down ${DEVICE}; then
echo $" failed; no link present. Check cable?"
ip link set dev ${DEVICE} down >/dev/null 2>&1
mdv-network-event connection_failure ${DEVICE}
@@ -401,11 +401,11 @@ if [ -n "${DYNCONFIG}" ]; then
fi
mdv-network-event zcip_failure ${DEVICE}
echo $" failed."
- if [[ "${IPV4_FAILURE_FATAL}" = [Yy1]* ]] ; then
+ if is_true "${IPV4_FAILURE_FATAL}"; then
mdv-network-event connection_failure ${DEVICE}
exit 1
fi
- if [[ "$IPV6INIT" = [nN0]* || "$DHCPV6C" != [yY1]* ]] ; then
+ if is_false "$IPV6INIT" || ! is_true "$DHCPV6C"; then
mdv-network-event connection_failure ${DEVICE}
exit 1
fi