]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - sysconfig/network-scripts/functions.network
- it's common for WiFi that all the methods of link state determinaion fail,
[projects/rc-scripts.git] / sysconfig / network-scripts / functions.network
index 67adc5ff2a2d2906e9bfe17e917ec94f0b950951..a10cb515a540dc63309cc7282ae8eceaf402bf1a 100644 (file)
@@ -27,7 +27,7 @@ source_config ()
        # and forgot to alter DEVICE= line you won't accidentally bring down eth0
        # while executing ifdown eth1. We do that only if configuration file exists
        # (sometimes ifcfg-xyz isn't needed at all like server-side pppoe pppX interfaces)
-       if [ "$foundconfig" -eq "1" -a "$DEVICE" -a  "$DEVNAME" != "$DEVICE" ]; then
+       if [ "$foundconfig" -eq "1" -a "$DEVICE" -a "$DEVNAME" != "$DEVICE" ]; then
                echo >&2 "$0: DEVICE specified in $CONFIG does not match filename. Aborting!"
                exit 1
        fi
@@ -618,6 +618,10 @@ check_link_down ()
                                usleep 500000
                                timeout=$((timeout+1))
                        done
+                       # do not abort dhclient if all the checks are unsupported
+                       if [ $m -eq 2 ] && [ $i -eq 2 ] && [ $e -eq 2 ]; then
+                               return 2
+                       fi
                        return 0
                fi
        fi
This page took 0.02394 seconds and 4 git commands to generate.